Extending slightly the SQL regex