[MDEV-6965] non-captured group \2 in regexp_replace Created: 2014-10-28 Updated: 2014-11-10 Resolved: 2014-11-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 10.0.11 |
| Fix Version/s: | 10.0.15 |
| Type: | Bug | Priority: | Major |
| Reporter: | Julian Ladisch | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | regexp | ||
| Description |
|
expected result: 1 this and that |
| Comments |
| Comment by Elena Stepanova [ 2014-10-28 ] | ||
|
Thinking about it, it sort of makes sense. My quick search through PCRE documentation hasn't found anything saying whether it's intentional, so I'm assigning it to bar to confirm (or not). | ||
| Comment by Julian Ladisch [ 2014-10-29 ] | ||
|
Perl and JavaScript also produce the expected result "1 this and that":
http://www.pcre.org/pcre.txt |