I have a python template engine that heavily uses regexp. It uses concatenation like:
re.compile( regexp1 + \"|\" + regexp2 + \"*|\" + regexp3 + \"+\" ) <
re.compile( regexp1 + \"|\" + regexp2 + \"*|\" + regexp3 + \"+\" )
You could use \z.. This is the absolute end of string, followed by two of anything
\z..
If + or * is tacked on the end this still works refusing to match anything
+
*