Re: Help with Regular expression
From: Niki Estner (niki.estner_at_cube.net)
Date: 12/03/04
- Next message: WALDO: "Re: Help - RegEx, differences between FW 1.1 and 2.0"
- Previous message: WALDO: "Re: Help with Regular expression"
- In reply to: M. D'Costa: "Help with Regular expression"
- Next in thread: Nicole Schenk: "Re: Help with Regular expression"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 3 Dec 2004 11:36:04 +0100
"M. D'Costa" <medcosta@hotmail.com> wrote in
news:exnDX9R2EHA.3120@TK2MSFTNGP12.phx.gbl...
> Hello,
>
> I am trying to write a regular expression to parse the string:
>
> Database=TestDB;Data Source=server;User Id=guest;Password=;
>
> Am doing this to extract the values after the equals sign( =) and before
> the
> semicolon(;)
> and I want the values stored in variables that are before the equals
> sign.....
>
> I have been semi-successful. Help will be appreciated.
What have you tried so far/where exactly did you get stuck?
I tried "([^=]*)=([^;]*);", and it worked on the sample string you provided.
Niki
- Next message: WALDO: "Re: Help - RegEx, differences between FW 1.1 and 2.0"
- Previous message: WALDO: "Re: Help with Regular expression"
- In reply to: M. D'Costa: "Help with Regular expression"
- Next in thread: Nicole Schenk: "Re: Help with Regular expression"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
Loading