Is there a way to add flags to trigger matches?
I'd like to be able to enable the 'J' flag so I can use duplicate capture groups.
So I can do stuff like this:
[EDIT]I attempted to compile the match text with rex.new() using the DUPNAMES flag and then using SetTriggerOption() to set the match of the trigger with the complied regex. It didn't work because the regex is considered userdata and it wanted a string.
I'd like to be able to enable the 'J' flag so I can use duplicate capture groups.
So I can do stuff like this:
/^(?(?=this)(?<this>\w+)( and (?<that>\w+))?|(?<that>\w+))$/gmJ
https://regex101.com/r/Hh0hTN/4
[EDIT]I attempted to compile the match text with rex.new() using the DUPNAMES flag and then using SetTriggerOption() to set the match of the trigger with the complied regex. It didn't work because the regex is considered userdata and it wanted a string.