I want to fetch text surrounded by some customized "brackets", i.e.: {{...}} or @(...)@
when the brackets is only one character length (i.e.: {..}) , it is :
/{(.*?)}/g
and there is a more efficient solution, using "not-end-bracket" pattern:
/{([^}]*)}/g
but for two-characsters brackets, only this works
/{{(.*?)}}/g
I can't find an efficient solution like the one in the one-character case.
Is there any?