LitDev Extension API
LDRegex
Regex (regular expression) text manipulation utilities.
Match | Replace |
Match(input,pattern,caseSensitive)
Perform a regex match.
input The input string to perform the match on (unaltered).
pattern The regex pattern string.
caseSensitive If the regex match is case sensitive ("True" or "False").
returns An array of match values, indexed by the location index in the input (position).
Replace(input,pattern,replacement,caseSensitive)
Perform a regex find and replace.
input The input string to perform the replacement on (unaltered).
pattern The regex pattern string.
replacement The regex replacement string.
caseSensitive If the regex replace is case sensitive ("True" or "False").
returns A modified version of the input string after the regex replace.