From c4d2ea2e76c26f1c718822a3e06e237a5597c6c6 Mon Sep 17 00:00:00 2001
From: Graham Perrin Regular expressions allow for more complicated patterns but they are a lot harder to learn than wildcards. I'm not gonna
- create a regex tutorial here but normal javascript regex syntax works, look at http://regular-expressions.info for
+ create a regex tutorial here but normal javascript regex syntax works, look at Regular-Expressions.info for
an introduction to regular expressions. $1,$2 etc. can be used in the redirect url and will be replaced with contents of captures in
the regular expressions. Captures are specified with parentheses. Example: http://example.com/index.asp\?id=(\d+) will match the url
http://example.com/index.asp?id=12345 and $1 will be replaced by 12345. (A common mistake in regex patterns is to forget to escape
the ? sign in the querystring of the url. ? is a special character in regular expressions so if you want to match an url with a querystring
- you should escape it as \?). To test your regular expressions, you may use any website or service. For example, regexr.com Regular expressions