Forum Discussion

Mez's avatar
Mez
Qrew Captain
2 months ago
Solved

Using RegexReplace()

Does this function support capturing groups, and if yes, how does one access the captured data?  Intent is to use a this function looking for punctuation from a text field, and then add a new line t...
  • Mez's avatar
    Mez
    29 days ago

    Found the solution: capturing is referred to with backslash 1, which needs to be escaped. 

    RegexReplace( [Additional Notes], "([.!?])\\s*", "\\1\n" )