Regular expression
-
18 Agustus 2012 17:26
Hi Anybody,
Help me in writing the regular expression.
My input format is like this
ABC 100
ABC DEF 200
ABC DEF GHI 300 like this..Please its an urgent
- Dipindahkan oleh Lisa ZhuMicrosoft Contingent Staff 20 Agustus 2012 10:22 Regex question (From:Visual C# General)
Semua Balasan
-
18 Agustus 2012 17:30
Some more clarification regarding the input format
A 300
AB 3
ABC DE 4000
-
18 Agustus 2012 18:32
OK Lakshmi ... you've described the input thoroughly, now what do you want the regular expression to do ?
Do you want it to look for a match ? replace a character ? capture a string of chars ? remove the digits ?
-
18 Agustus 2012 23:18
Hi Lakshmi,
how about
string pattern = @"^([A-Z]{3}\s)+\d00$";
Sorry, I missed your clarification.
string pattern = @"^([A-Z]{1,3}\s)+\d0*$"Regards,
wizend
- Diedit oleh Wizend 18 Agustus 2012 23:33
- Disarankan sebagai Jawaban oleh Mike FengMicrosoft Contingent Staff, Moderator 22 Agustus 2012 12:23
- Saran Jawaban dibatalkan oleh Mike FengMicrosoft Contingent Staff, Moderator 22 Agustus 2012 12:23
-
19 Agustus 2012 0:18We can write the Regex for you, but what is this regex supposed to do? Validate? Find a specific part of the string?
If a post helps you in any way or solves your particular issue, please remember to use the Propose As Answer option or Vote As Helpful
Visit the Forum: TechLifeForum -
19 Agustus 2012 7:40
Hi Anybody,
Help me in writing the regular expression.
My input format is like this
ABC 100
ABC DEF 200
ABC DEF GHI 300 like this..Please its an urgent
Hi Buddy!
UseExpresso 3.0
can be registered at no charge!
-
20 Agustus 2012 10:21
Hi Lakshmi ,
According to your description , I ‘d like to move this post to the most related forum .
There are many experts , so you will get better support and may have more luck getting answers .
Thanks for your understanding .
Regards ,
Lisa Zhu [MSFT]
MSDN Community Support | Feedback to us