I am using golang regexp and I want to extract a pattern in a string.
For example, I can have the following name value pairs in the string:
"name1=val1;name2=val2;needle=haystack;name3=val3"
I am looking for exactly the string "needle=haystack" and discard anything else.
It would be even better if I could just get the result to be exactly haystack.
How do I do this with regexp in golang?