1

I've looked all over Stack-Overflow and Google for a simple REGEX for MySQL that satisfies the following requirements:

  • Finds all rows with a Non English Characters (ΓΆ, etc)
  • Match any part of the column not just the first or last
  • Allowed characters are anything but foreign characters (acceptable: _, A-Z, 0-9, # , " ' ( ) - @)

Any suggestions?

gregavola
  • 2,519
  • 5
  • 30
  • 47
  • Would this help? [find columns with non-ASCII characters](http://stackoverflow.com/a/1252544/3110638) – Jonny 5 Jan 08 '14 at 13:30

1 Answers1

3

Try this

SELECT * FROM tableName WHERE NOT columnToCheck REGEXP '[A-Za-z0-9]';
Vignesh Kumar A
  • 27,863
  • 13
  • 63
  • 115