[MXS-1426] multiple regular about ccrfilter Created: 2017-09-20 Updated: 2017-12-01 Resolved: 2017-09-21 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | ccrfilter |
| Affects Version/s: | 2.1.5 |
| Fix Version/s: | 2.2.0 |
| Type: | New Feature | Priority: | Major |
| Reporter: | make Yuan | Assignee: | markus makela |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | fiter | ||
| Environment: |
centos6.5 |
||
| Description |
|
How to match multiple regular ?? like
OR
But I found nothing worked~~~~~~~~ |
| Comments |
| Comment by make Yuan [ 2017-09-20 ] | |
|
why can't submitted issue at github ~~~~ | |
| Comment by markus makela [ 2017-09-21 ] | |
|
I would recommend adding options=extended into the filter parameters and using the following extended regular expression for match:
In MaxScale 2.1, ccrfilter uses Basic Regular Expressions by default and BRE does not support alternation (i.e. the | operator). Extended Regular Expressions do support them and they can be enabled by adding the options=extended parameter to the filter. This is described in the ccrfilter documentation. In MaxScale 2.2, the filter will use PCRE2 regular expressions which offer a more diverse syntax for defining regular expressions. | |
| Comment by markus makela [ 2017-09-21 ] | |
|
Closing as the issue will be solved with the introduction of PCRE2 regular expressions in 2.2.0. |