repl: escape brace and other regex function char

this change just would be good look at regex in some editor 
and more clear in defination of expression :p