I have a string like
{{token1}}/{{token2}}
I want to match {{token2}}
using regex.
other possible cases that it should match are
{{token1}}/{
should match {
(the last one).
{{token1}}/{{
should match {{
(the last one).
{{token1}}/{{token2
should match {{token2
.
I tried /\S+$/
but it works when the string is {{token1}} {{token2}}
.
Thanks in advance.