I am having trouble capturing a value from a string.
I have an input but it doesn’t have any format just we know that its separated with ; special character.
test?test; 1231@test;name=vonnegut
I would like to split this input with given special character and then find the result which includes another special character like =.
The result for this: name=vonnegut
You can try this
See it here on Regexr
[^;]+is a negated character class that will match a series of characters (+means at least one) that are not a semicolon (it will also match newline characters, so be careful if your string contains those, then you need to add them into the class[^;\r\n])