Regular Expression Question

Discussion in 'Microsoft VB .NET' started by Guest, Jun 7, 2007.

  1. Guest

    Guest Guest

    Hi,

    I have a problem to figure out what the regular expression should I use to
    parse the following string:-

    {02}{10}{00}{03}{10}

    and output it to:-
    0210000310

    Thank You.
     
    Guest, Jun 7, 2007
    #1
    1. Advertisements

  2. Woo Mun Foong wrote:
    > I have a problem to figure out what the regular expression should I
    > use to parse the following string:-
    >
    > {02}{10}{00}{03}{10}
    >
    > and output it to:-
    > 0210000310


    Have you looked at the RegEx.Replace method?

    Andrew
     
    Andrew Morton, Jun 7, 2007
    #2
    1. Advertisements

  3. Guest

    Brian Gideon Guest

    On Jun 7, 2:36 am, Woo Mun Foong <> wrote:
    > Hi,
    >
    > I have a problem to figure out what the regular expression should I use to
    > parse the following string:-
    >
    > {02}{10}{00}{03}{10}
    >
    > and output it to:-
    > 0210000310
    >
    > Thank You.


    Do you really need a regular expression for that. Why not just do a
    String.Replace on it?

    Brian
     
    Brian Gideon, Jun 7, 2007
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Craig Buchanan

    regular expression question

    Craig Buchanan, Feb 24, 2004, in forum: Microsoft VB .NET
    Replies:
    6
    Views:
    150
    Craig Buchanan
    Feb 25, 2004
  2. Wayne Wengert

    Regular Expression Question

    Wayne Wengert, Mar 9, 2006, in forum: Microsoft VB .NET
    Replies:
    6
    Views:
    164
    Wayne Wengert
    Mar 9, 2006
  3. PJ6

    regular expression question

    PJ6, May 1, 2007, in forum: Microsoft VB .NET
    Replies:
    7
    Views:
    286
    =?ISO-8859-1?Q?G=F6ran_Andersson?=
    May 3, 2007
  4. Spam Catcher

    Regular Expression Question - Matching Tags?

    Spam Catcher, Aug 2, 2007, in forum: Microsoft VB .NET
    Replies:
    4
    Views:
    193
    Spam Catcher
    Aug 5, 2007
  5. Guest

    Regular Expression question

    Guest, Sep 12, 2007, in forum: Microsoft VB .NET
    Replies:
    2
    Views:
    161
    Guest
    Sep 12, 2007
Loading...

Share This Page