I read through the help and PCRE man, but didn't quite understand everything...
What does TRegEx.Find do? It returns a match object, which has SubCount matches, but what are they?
PCRE has "standard" and "alternative" matching methods, of which common.bmx seems to import the standard one... However the man says this about the standard method:
So why would it ever return more than one match? Also, will the match always be the first from left, the shortest, the longest or something else?
If I need to find the longest match beginning at position 0 in the string, what should I do?
What does TRegEx.Find do? It returns a match object, which has SubCount matches, but what are they?
PCRE has "standard" and "alternative" matching methods, of which common.bmx seems to import the standard one... However the man says this about the standard method:
If a leaf node is reached, a matching string has been found, and at that point the algorithm stops.
So why would it ever return more than one match? Also, will the match always be the first from left, the shortest, the longest or something else?
If I need to find the longest match beginning at position 0 in the string, what should I do?