Fix regex matching commands.