Fixed recognition of escaped slashes in regex script.
Fixed forward slash escaping in replace portion of regex.
Merge pull request #45 from ShockkPony/master

scripts/regex: fix recognition of escaped slashes