Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Parse value from name/value pair string

Reply
Thread Tools

Parse value from name/value pair string

 
 
David Lozzi
Guest
Posts: n/a
 
      06-08-2006
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
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
stl map: get the <key,value> pair which has the minimum value Rui Maciel C++ 2 12-01-2009 11:21 PM
How to parse a string like C program parse the command line string? linzhenhua1205@163.com C Programming 19 03-15-2005 07:41 PM
Clearing QueryString Name/Value pair from URL Jon ASP .Net 3 02-09-2004 10:30 PM



Advertisments