I would like to extract the nth occurance of a token from a string based on the position of a pattern matching more than one characters, vs. the single character list of delimiters that GetToken() supports. GetToken() is great in many contexts, but not this one! Haven't found anything in CFLib, but maybe I'm just looking in the wrong places. Seems like it should be a common need.
GetToken() and ListGetAt() both will treat multiple delimiter values as individual, not as a pattern.
I wonder if RegEx matching will get at least an index position, which you can use as you describe?
^ _ ^
Good find. Ben comes up with some pretty awesome scripts. I especially like his reMultiMatch() function.
^ _ ^
Copy link to clipboard