Regex escaping

just some little extensions to the regex filter stuff, also a skeleton transfer block.