Greetings All,
I’m wrestling with a fairly simple Regex in this Replace function. I have it working with either the /g flag, or the /i flag, but /gi simply does nothing. Any help would be greatly appreciated, thanks for looking!!
Greetings All,
I’m wrestling with a fairly simple Regex in this Replace function. I have it working with either the /g flag, or the /i flag, but /gi simply does nothing. Any help would be greatly appreciated, thanks for looking!!
I’m not sure why the replace() function doesn’t work.
Would you be OK using the text parsre instead?
L
@L_Duperval Thanks for the assist. I was able to find a similar workaround, though for the sake of saving operations I was trying to avoid adding a module. This part of my scenario is very iterative, so any added module adds up fast.
I was also able to find a post by @samliew where he calls out that this may simply be a bug:
Thanks again!
Yes this is a bug in the replace function. The workaround is to use only the “g” flag which is more important, while the pattern can be modified to work around the loss of the other flags.
— @samliew