Using Regex number pattern
Hi want regular expression to check this kind 33.0.123 / 33.build.001 in a single expresion
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Iftikar HussainPosted Jun 25, 2013, 8:22 AM
You can use like this
Regex re = new Regex(@"^(33.)(0|build)(.)(\d{3})+$");
Example -
Matched: 33.0.123,33.0.111,33.0.001,33.build.123,33.build.111,33.build.001
Let me know if you need more details
Regards,
Iftikar
Remember to click "Mark as Answer" on the post, if it helps you.
VulpesPosted Jun 26, 2013, 8:01 AM
The output should be:
suhas settyPosted Jun 26, 2013, 1:14 AM
33.0.123
loading "apple\folder1\folder2"
loading "bat\folder3\folder4"
unloaded "cat\fold5\fold6"
33.build.002
loading "apple\folder1\folder2"
loading "bat\folder3\folder4"
unloaded "cat\fold5\fold6"
33.0.122
loading "apple\folder1\folder2"
loading "bat\folder3\folder4"
unloaded "cat\fold5\fold6"
33.0.121
loading "apple\folder1\folder2"
loading "bat\folder3\folder4"
unloaded "cat\fold5\fold6"
and i want only loading part
VulpesPosted Jun 25, 2013, 8:08 AM