T
Tim B
Hello,
I am trying to come up with a single regex that will match all strings like
the following, where param1, someOtherParam and yetAnotherParam are literals
and foo, bar and yetAnotherValue can be any group of letters or digits
?param1=foo
&someOtherParam=bar
&yetAnotherParam=yetAnotherValue
I want to manipulate the part after the "=" in each string
So far I have [[\\?]&][a-zA-Z_0-9]+=([a-zA-Z_0-9]+) which matches all the
above plus any with any letter/digits string in place of param1,
someOtherParam or yetAnotherParam.
Is there something I can put in the pattern instead of the first
[a-zA-Z_0-9]+ that will match exactly one of param1, someOtherParam or
yetAnotherParam?
I am trying to come up with a single regex that will match all strings like
the following, where param1, someOtherParam and yetAnotherParam are literals
and foo, bar and yetAnotherValue can be any group of letters or digits
?param1=foo
&someOtherParam=bar
&yetAnotherParam=yetAnotherValue
I want to manipulate the part after the "=" in each string
So far I have [[\\?]&][a-zA-Z_0-9]+=([a-zA-Z_0-9]+) which matches all the
above plus any with any letter/digits string in place of param1,
someOtherParam or yetAnotherParam.
Is there something I can put in the pattern instead of the first
[a-zA-Z_0-9]+ that will match exactly one of param1, someOtherParam or
yetAnotherParam?