I am matching XML element names, so probably no newlines there. But indeed I have to make the second group optional: m{^\(\?([xism]*)(?:-[xism]*)?:(.*)\)$}.
In reply to Re^2: Converting a stringified regexp back into a regexp
by mirod
in thread Converting a stringified regexp back into a regexp
by mirod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |