Common Regex Commands Used In Content Switching

/ - This begins and stops the PCRE engine on the LoadMaster

^ - This can only be placed at the start of the string and means that the string must match at the start of the URL

$ - This can only be placed at the end of the string and means that will match all before the end of the URL

- Matches the previous character zero or more times

\ - makes any character literal

[ -  This starts the set notation. This matches a single character which is contained within a set. If the set starts with ^, then this will match a single character which is not within the set

( ) – Capture everything enclosed, used for back reference

\1 - will add the anything captured by first ()

Was this article helpful?

2 out of 2 found this helpful

Comments