
Normally '' will match the whole string ' content' - but '' will match ' ' and ''.Ī capture group. Non-greedy matches - matches the first valid match. For example, 'Sam' is the same as 'Saa+m' For example, Sa+m matches Sam, Saam, Saaam and so on. For example, Sa*m matches Sm, Sam, Saam, Saaam and so on.

This matches the start of a line (unless used inside a set, see above). For example, means any character except an alphabetic character. The complement of the characters in the set. You can also use ranges, for example for any lower case character. This indicates a set of characters, for example, means any of the characters a, b or c. Note: As only 9 regions can be used you can safely use replace string \10\2 to produce "text from region 1"0"text from region 2". For example, if the search string was Fred()XXX and the replace string was Sam\1YYY, when applied to Fred2XXX this would generate Sam2YYY. This refers to the first through ninth (\1 to \9) tagged region when replacing. These tags can be used within the current regular expression or in the replacement string in a search/replace. These tag can be access using the syntax \1 for the first tag, \2 for the second, and \3 \4. To match all characters including new lines you can use \s\S. Note: That this means "." will also match \r which might cause some confusion when you are editing a file with both \r and \n. Matches any character except new line (\n). Note: Multi-line expressions (involving \n, \r, etc) are not yet supported. Regular Expressions allow complicated and flexible search/replace using a specific syntax. _NOTE: For older versions of PN the tagged expressions start \( and end \) and there are no non-capture groups nor the backslash groups.
