![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I'm trying to match certain Unicode code points in a select query but all my attempts and lots of searching on the net failed. (Actually, I want to replace something and I want to check with this select if the replace operation worked correctly.) I tried for instance WHERE col REGEXP '\u004c' which should find any occurences of 'L', but it doesn't. '\x4c' fails as well. What's the correct syntax for MySQL? The field is of type text collation utf8_roman_ci (or similar). (Of course, I do not want to find 'L' this way. It's just a simplified query to get a working syntax.) |
#3
| |||
| |||
|
|
Where on ... is \u or \x discussed? |
#4
| |||
| |||
|
|
Peter H. Coffin schrieb am Mon, 14 Feb 2011 16:31:54 -0600: Where on .. is \u or \x discussed? \u and \x is standard syntax in various regular expression implementations. I gave it as an example of what obvious things I tried. That this is not supported is *exactly* the problem! |
|
How do I specify a certain Unicode code point either for matching or for insertion if not this way? |
#5
| |||
| |||
|
|
And while you're playing with those, remember that MySQL uses 0x notation to express hex constants, and you might find the CHAR(N,... [USING charset_name]) function pretty handy.... |
![]() |
| Thread Tools | |
| Display Modes | |
| |