NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Substitutions

Substitutions are allowed only within a replacement pattern. For similar functionality within a regular expression, use a backreference (for example, \1; see the Backreference Constructs section).

Character escapes and substitutions are the only special constructs recognized in a replacement pattern. All the syntactic constructs described in the sections that follow are allowed only in regular expressions and not recognized in replacement patterns. For example, the replacement pattern a*${txt}b inserts the string a* followed by the substring matched by the "txt"capturing group, if any, followed by the string "b". The * character is not recognized as a metacharacter within a replacement pattern. Similarly, $ patterns are not recognized within a regular expression matching pattern. Within a regular expression, $ means "end of string". For example:

$123 Substitutes the last substring matched by group number 123 (decimal).
${name} Substitutes the last substring matched by a (?<name> ) group.