I've got a request parameter string that will always come to my server like so:
str1=wordA&str2=wordB&desc3=&int=0
etc.
The catch here is the parameter with name desc3
, which may or may not have data accompanied with it, as I've shown here, with no data. What I'm trying to do is use regex to extract strings that match the right hand side of str1=word
, while also being able to specify what is on the left hand side. For instance, I may want only str1
params, or I may want only desc
params. Each one of these will be a seperate regex. For instance, the str1
regex will be separate from the desc3
regex. I am very new to working with regex, and I can't get the results no matter what I seem to do.