Regular expression to match last item without delimiter
Posted
by Steven
on Stack Overflow
See other posts from Stack Overflow
or by Steven
Published on 2010-03-16T00:02:12Z
Indexed on
2010/03/16
0:09 UTC
Read the original article
Hit count: 259
regex
I have a string of names like this "J. Smith; B. Jones; O. Henry" I can match all but the last name with
\w+.*?;
Is there a regular expression that will match all the names, including the last one?
© Stack Overflow or respective owner