[MDEV-14620] Regexp not matching dash (-) Created: 2017-12-11 Updated: 2017-12-12 Resolved: 2017-12-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 5.5.56 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Dron Kram | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
|
||
| Description |
|
Hello.
Inserted alias with regexp
Selecting email with dash returns empty dataset
Point (tks.te.st@example.com) and underscore (tks.te_st@example.com) matches well. Checked same on MySQL 5.1.73 - dash matching without any problem. |
| Comments |
| Comment by Dron Kram [ 2017-12-12 ] | ||
|
Updated MariaDB to 10.0 version from IUS repo and in this version matching of dash works well. | ||
| Comment by Alexander Barkov [ 2017-12-12 ] | ||
|
In 10.0, MariaDB switched to PCRE instead of Henry Spencer's regexp library. So in versions before 10.0, instead of:
please use:
| ||
| Comment by Alexander Barkov [ 2017-12-12 ] | ||
|
Btw, with MySQL-5.1.72 it also returns empty set. |