Is there way to pass some string to regexp and not worry about ecranisation of special chars.
For example I wont to find line which starts with words "\north+west\", as you can see "\n" and "h+" should be ecranised. So question is there some special combination to write text as it is?
/^\s+(<some special combination> \north+west\)\s+/i
or maybe you know function which can properly ecranise my text?