[MDEV-5357] REGEXP word boundaries don't work Created: 2013-11-28 Updated: 2013-12-17 Resolved: 2013-12-17 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.0.5, 10.0.6 |
| Fix Version/s: | 10.0.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | James Sharpe | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Centos 6.4 |
||
| Description |
|
Since the switch to pcre, word boundary queries such as SELECT 'a word a' REGEXP '[[:<:]]word[[:>:]]'; no longer work because it tries to parse [[:<:]] as a character class name. |
| Comments |
| Comment by Alexander Barkov [ 2013-11-28 ] |
|
Hi James. This is a non-standard extension in the old regex library. In the meanwhile please use this syntax with PCRE: SELECT 'a word a' REGEXP '\\bword |
| Comment by James Sharpe [ 2013-11-30 ] |
|
Does that syntax work in mysql too? The software I'm seeing the issue with is civicrm so I'll push this fix upstream if it works for mysql too. |
| Comment by Alexander Barkov [ 2013-11-30 ] |
|
Unfortunately, the '\\bword Anyway, we have a good news for you: |
| Comment by Alexander Barkov [ 2013-12-02 ] |
|
Fixed in 10.0. |