i’ve being trying this without success:
select * from table where name regexp '^[:alpha:]{2}$'
pls help me?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There probably needs to be some white space in between the two words, right? Try
[[:alpha:]]+matches one or more letter characters[[:space:]]*matches zero or more whitespace characters. (You may want to use[[:blank:]]*instead, to only match spaces and tabs, or[[ ]]*for spaces only.)[[:alpha:]]*matches zero or more letter charactersSo this should accept strings like
"foo""foo ""foo ""foo bar""foo bar"and reject strings like
" foo"" foo ""foo bar baz"