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

Popular posts from this blog

OpenCV OpenCL: Convert Mat to Bitmap in JNI Layer for Android -

python - How to remove the Xframe Options header in django? -

android - org.xmlpull.v1.XmlPullParserException: expected: START_TAG {http://schemas.xmlsoap.org/soap/envelope/}Envelope -