Instead of using \"if ($regex($1-,(L|l)(O|o)(L|l)) > 0)\" Use \"if ($regex($1-,(L|l)(O|o)(L|l)))\" its much cleaner and does the same thing