471,591 Members | 1,561 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,591 software developers and data experts.

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
0 1252

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
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.