c# - Regex match with multiple occurences -
with strings example
90001:21880004:los angeles 10001:21880005:new york
i want extract city names @ end through regex. finding hard 2 :
can point me in right direction?
if want use regex:
^\d+:\d+:(.+)$
should work.
([^\d:]+)
should work.
however, looks want split.
"11111:111111:name".split(':')[2]
fastest method.
Comments
Post a Comment