3
Answers

A Regex problem

yokzu

yokzu

12y
1.1k
1
Hi;

I'm trying to parse a string with Regex but I am not able to..

For example there is 2 samples;

City:Empty          --->Dont parse
City:Newyork     --->parse
City:Mumbai      --->parse

I want to get "City:Newyork and City:Mumbai ".  So I want to choose all samples like this; There will be "City:" string but NOT "Empty" string at the end.

How can I do that?
Answers (3)