Re: Help with Regular expression

From: Niki Estner (niki.estner_at_cube.net)
Date: 12/03/04


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



Relevant Pages

  • parsing pkcs#7 string
    ... I'm wondering if there is any class in CAPICOM that can parse the pkcs#7 ... I try to extract the certificates in the pkcs#7 but so far ...
    (microsoft.public.dotnet.security)
  • Re: Help with Regular expression
    ... > Am doing this to extract the values after the equals signand before ... > and I want the values stored in variables that are before the equals ... It is quite possible to do it with a regular expression, ... Split method of the string class? ...
    (microsoft.public.dotnet.framework)
  • Help with Regular expression
    ... I am trying to write a regular expression to parse the string: ... Am doing this to extract the values after the equals signand before the ...
    (microsoft.public.dotnet.framework)
  • Re: simple gsub question ` what?
    ... I need to parse a string: ... and I need to extract everything before the: (colon) into one variable ...
    (comp.lang.ruby)
  • Parsing a text string in Col. A to extract 2 values and return their product in Col. B
    ... I need to process to parse a text string in column A to extract 2 ... values and return their product in colunmn B ...
    (microsoft.public.excel.programming)

Loading