Home » Regular Expression Quick Guide TextSoap

Regular Expression Quick Guide


TextSoap supports use of regular expressions. A regular expression is a string that represents a set of possible strings. Here is a quick guide to basic syntax to get you started.



Escaped Literal Characters


While letters, numbers can be treated as literals, a number of symbols have special meaning with a regular expression, to match one of these special characters, it needs to be escaped. The following characters have special meaning within a regular expression:


+ ? . * ^ $ ( ) [ ] { } | \


To search for these specific characters, precede them with a backslash (), which is known as escaping the character.


To match a period, use \. To match a backslash, use \\


Replace Template


To reference a captured group, use the syntax $0.


$0 - entire search results

$1 - results of first capture group


Sample Expressions



For a more definitive look at regular expressions, see the full reference on regular expression syntax.