2013-04-11 文字列の先頭/最後にマッチ 正規表現 ^と$を使う。An apple falled from the tree.という文章について、 ^AnはAn appleのAnにマッチするし、 tree\.$は、最後のtree.にマッチする。