Quote:
Originally Posted by gmaxey
batman1,
But how does this pattern ",( [A-Za-zü\-]+)* [A-Z][A-Za-zü\-]+," (or the other) return a match when there is just one name between the commas e.g.,
Test, Jack, end test, test.
|
In the case of "Test, Jack, end test, test." we have ", Jack," = ", " & A & B & "," - where A = "", B = " Jack"
A = "" means ( [A-Za-zü\-]+) occurs 0 times (* means the expression before it occurs 0 or many times). It doesn't matter what the expression but occurs 0 times it gives an empty string.
B = " Jack" = " J" & "ack" = " [A-Z]" & 3 times "[A-Za-zü\-]"