This RegEx : {=tokenstring[^{}]*(?:{[^{}]*}[^{}]*)*}/g
matches this string properly:
{=tokenstring?param1=11¶m2={token-identifier}¶m3={token-child-identifier}¶m4=20}
(That string is a token which is being used in my website. It's value changes dynamically based on the provided request data in the content pages.)
I would like to add one more condition to the RegEx. For example "param3", to find if it exists or not in the string.
I know this new RegEx: /param3=([^&])/
will get the word "param3" from the string but how to fit that new RegEx into the original RegEx?