I'm new to working with regular expressions and was wondering if the following regex could somehow be simplified...
{{(?:[\s]+)?(.*)([\s]+)?}}
I am trying to get the string out of the following pattern...
{{SOME_STRING}}
{{ SOME_STRING}}
{{ SOME_STRING }}
{{ SOME-STRING }}
{{ SomE STRING }}
Additionally, it doesn't quite work right as there should not be any trailing spaces on the match.
Regex101 Link: http://regex101.com/r/kT9yT5