467,146 Members | 1,262 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,146 developers. It's quick & easy.

Parse value from name/value pair string

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
Jun 8 '06 #1
  • viewed: 1153
Share:

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Roberto A. F. De Almeida | last post: by
3 posts views Thread by Jon Davis | last post: by
10 posts views Thread by dreamcatcher | last post: by
7 posts views Thread by RSH | last post: by
29 posts views Thread by gs | last post: by
11 posts views Thread by Peter Afonin | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.