String to be matched:
id=abc somethingelse value=1 value=2 value=3 value=1
String not to be matched:
id=abc somethingelse value=2 value=2 value=3 value=1
I would like to:
- skip the somethingelsestring, i.e., can't predict what this string is, so must use wildcard
- match the first occurrence value=1
- if the first valuedoes not equal to 1, ignore any other occurrences and abort. So the second example should not be matched.
I tried id=abc.*?value=1 in regex101, but obviously it doesn't stop at the first value...
Many thanks.
 
    