by manalive » Wed Sep 21, 2022 4:32 pm
I've been using this in 2662 and it's great!
I think my last suggestion is turning out to be relevant-
$POS should accept a third parameter for nth instance of the string. Right now we can only get the first and last instance of the string.
I would also recommend a COUNT function to find out how many times it occurs.
Combining $IF, $Len, $Left/$Right/$Mid with $POS and $Count means you have a complete system and can grab any string without resorting to RegEx.
I've been using this in 2662 and it's great!
I think my last suggestion is turning out to be relevant-
$POS should accept a third parameter for nth instance of the string. Right now we can only get the first and last instance of the string.
I would also recommend a COUNT function to find out how many times it occurs.
Combining $IF, $Len, $Left/$Right/$Mid with $POS and $Count means you have a complete system and can grab any string without resorting to RegEx.