I have these:
<!--{tag}-->
and
<!--{tag(integer)}-->
and
<!--{tag('argument1')}-->
and
<!--{tag('argument1', 'argument2',... 'argumentn')}-->
I am looking for single pattern, that can handle all of them, I have tried this for the first one, but I have no idea with the second pattern, to the fourth:
<!--\{tag\}-->
ps:
*argument can be an integer (with no quote) or a string with single quote (or double quote).
*The pattern can extract the information in argument
Thanks
It’s not pretty, but this is what I came up with:
You can see from the regexer that it is matching every one of your test cases.
However, it will also match the following test cases, which I am leaving up to the OP to determine how to correct.