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?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Craig Buchanan

    regular expression question

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

    Regular Expression Question

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

    regular expression question

    PJ6, May 1, 2007, in forum: Microsoft VB .NET
    Replies:
    7
    Views:
    370
    =?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:
    264
    Spam Catcher
    Aug 5, 2007
  5. Guest

    Regular Expression question

    Guest, Sep 12, 2007, in forum: Microsoft VB .NET
    Replies:
    2
    Views:
    209
    Guest
    Sep 12, 2007
  6. Mic

    Regular expression question

    Mic, Oct 28, 2007, in forum: Microsoft VB .NET
    Replies:
    2
    Views:
    206
    Lloyd Sheen
    Oct 28, 2007
  7. Anthony P.

    A question about a failing regular expression

    Anthony P., Jun 10, 2009, in forum: Microsoft VB .NET
    Replies:
    4
    Views:
    230
    Anthony Papillion
    Jun 12, 2009
  8. Jerry J

    Regular Expression question

    Jerry J, Sep 21, 2009, in forum: Microsoft VB .NET
    Replies:
    5
    Views:
    310
    Jerry J
    Sep 22, 2009
Loading...