in reply to Re: Re: Parsing issue
in thread Parsing issue

The $ symbol means the end of the line, and the | symbol means 'or'.

So this part of the regexp

($|(?=\w+:))
translates to "match if either the end of line has been reached, OR if the next part (lookahead) matches one or more alphanumeric characters followed by a colon"

Without checking for the end of line, the last parameter would always be missed out (it would only match a parameter if it was followed by another one).

JJ