Skip to content

Instantly share code, notes, and snippets.

@dayanand-sourcebits
Created August 13, 2012 13:04
Show Gist options
  • Save dayanand-sourcebits/3340505 to your computer and use it in GitHub Desktop.
Save dayanand-sourcebits/3340505 to your computer and use it in GitHub Desktop.
SELECT 1 REGEXP ''
Got error 'empty (sub)expression' from regexp
SELECT 1 REGEXP '('
Got error 'parentheses not balanced' from regexp
SELECT 1 REGEXP '['
Got error 'brackets ([ ]) not balanced' from regexp
SELECT 1 REGEXP '\\'
Got error 'trailing backslash (\)' from regexp
SELECT 1 REGEXP '*'
Got error 'repetition-operator operand invalid' from regexp
SELECT 1 REGEXP 'a{1,1,1}'
Got error 'invalid repetition count(s)' from regexp
SELECT 1 REGEXP '[a-9]'
Got error 'invalid character range' from regexp
SELECT 1 REGEXP 'a{1,'
Got error 'braces not balanced' from regexp
SELECT 1 REGEXP '[[.ab.]]'
Got error 'invalid collating element' from regexp
SELECT 1 REGEXP '[[:ab:]]'
Got error 'invalid character class' from regexp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment