Lazy regex for commands to enable function recursion