Parse value from name/value pair string

Discussion in 'ASP .Net' started by David Lozzi, Jun 8, 2006.

  1. David Lozzi

    David Lozzi Guest

    Howdy,

    I'm trying to get the values from a string of name/value pairs. I'm using a RegEx (I'm very new to RegEx) expression as seen below

    Dim regExp As Regex

    Dim m As Match

    m = regExp.Match(strResult, "RESULT=((.|\n)*?)&")

    If m.Success Then

    lblTest.Text = m.Value

    End If



    The value returned is RESULT=1&. I just want the value of the pair, not the entire pair returned....



    Thanks!



    --
    D a v i d L o z z i
    Data & Web Technology Specialist
    Delphi Technology Solutions, Inc.
    Wilmington, MA
    dlozzi@(remove this)delphi-ts.com - www.delphi-ts.com
    David Lozzi, Jun 8, 2006
    #1
    1. Advertising

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. Jon
    Replies:
    3
    Views:
    23,741
    bruce barker
    Feb 9, 2004
  2. Andy Sutorius via DotNetMonster.com

    name value pair

    Andy Sutorius via DotNetMonster.com, May 27, 2005, in forum: ASP .Net
    Replies:
    6
    Views:
    634
    =?Utf-8?B?RWx0b24gVw==?=
    Jun 3, 2005
  3. =?Utf-8?B?Sm9l?=

    Adding name-value pair to QueryString Collection?

    =?Utf-8?B?Sm9l?=, Feb 8, 2006, in forum: ASP .Net
    Replies:
    6
    Views:
    4,155
    Ravi Ambros Wallau
    Feb 8, 2006
  4. Replies:
    19
    Views:
    1,123
    Daniel Vallstrom
    Mar 15, 2005
  5. JDP@Work
    Replies:
    1
    Views:
    128
    JDP@Work
    Dec 19, 2005
Loading...

Share This Page