I need to extract a string after opResult and before another string (word+ '=')
For example:
testest=false opResult=Critical extension not supported random=abc srcPort=10
So I should extract out Critical extension not supported, before the next word with an equals sign.
Also, it should also work if there is no other string at the back, meaning I should get the same result with the below example.
typesOnly=false opResult=Critical extension not supported
The regular expression I have currently extracted everything before the last '=' sign.
opResult=(\S.*)(\s\w+=)