Terkunci 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

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
     
      Memiliki Kode

    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


  • 19 Agustus 2012 0:18
     
     
    We 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!
    Use

    Expresso 3.0

    can be registered at no charge!

    Expresso Download Page


  • 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