Use different delimiter to avoid escaping.

When dealing with slashes, it is desirable to use a different delimiter for the
regular expressions to avoid cluttering them up with a lot of escaping chars.

refs #319