Patterns, i.e. regular expressions, used in Tinderbox should use Perl language conventions, as further defined in documentation for the Boost regex code library: https://www.boost.org/doc/libs/1_34_1/libs/regex/doc/syntax_perl.html.
In action codes (or other operators) that are described as using regular expression patterns for their input arguments (i.e. 'patterns'), it may be possible to use the '\xdd' method to define characters in an escaped form such as tricks the first-pass parsing of single/double-quotes in arguments. Thus:
$Text = $Text.replace("XXX","\x22")
…replaces every instance of 'XXX' with a straight double quote character. Reference links:
- BOOST Regular Expression syntax (Perl flavour).
- Wikipedia ASCII codes. IMPORTANT: use the values in the 'Hex' column. Thus a straight double quote is
22
, a straight single quote is27
.