There is an example in the Reference section of the documentation:-
[RegexReplace:(?<token>[^|]+)((?<separator>[|])|$),[var:sessionvar],value=1005 == ${token};]Can anyone point me to an explanation of the various fields used in this example and particularly the usage of "?<token?..." the "$" and the ";" at the end.
Hi Mark,
These are Named Capture Groups and Backreferences which are both generic concepts within regular expressions (more info).
The syntax can be overwhelming and error prone which is why a tool like https://regex101.com/ is very handy when constructing complex regular expressions. Be sure to select the .NET flavor of regular expressions on the left hand side, as that is the one used in the Visual Overview.
Hi Sebastiaan,
Just what I was looking for!
Can be marked as solved
Many Thanks
Mark.