How can I access v2 regular expressions in a JS script, please? I need V2's capture naming.
RegExp (1) provides v2 patterns on a check box, and it respects capture names:


But despite Help for JS Renaming's:
- Code: Select all
regEx("text", "match", "replace")
This function processes a regular expression [b]in the same way as it is done in section RegEx (1)[/b].
regEx() does not respect capture names:



even with RegExp (1) v2 checkmarked.
Neither regEx2() nor regExV2() is available.
For all I can tell, this regEx behaviour is a bug.
Any suggestions gratefully received.
Thanks.
PS
- Code: Select all
regEx(line, "^(?<n>Date.).*$", "\\1")
gives Date:, confirming at least capturing works.