Parse value from name/value pair string

D

David Lozzi

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,577
Members
45,054
Latest member
LucyCarper

Latest Threads

Top