The basic URL search pattern is this:(?<Protocol>\w+):\/\/(?<Domain>[\w@][\w.:@]+)\/?[\w\.?=%&=\-@/$,]*
This will give you the protocol and domain in its own capture groups like so:
//Example
http://www.myurl.edu/.../.../pages/test.aspxProtocol --> http
Domain -->
www.myurl.eduIn your case you probably might need a
MatchEvaluator to do some checking. Perhaps start with this expression:
(?<Prefix>.*)(?<Suffix>pages\/test\d?\.aspx)
Then use the MatchEvaluator to check the prefix to see if it is clear to replace. If it is, make the replacement in the Suffix.
John Grove - TFD Group, Senior Software Engineer, EI Division, http://www.tfdg.com