better handling of ^ and $ (i.e. just ignore them within the regex, but allow escaping)

--HG--
branch : trunks
compile,test option

--HG--
branch : trunks
readme/docu

--HG--
branch : trunks