[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

match=.*INSERT.*
match=.*REPLACE.*

OR

match=.*INSERT.* | .*REPLACE.*

But I found nothing worked~~~~~~~~



 Comments   
Comment by make Yuan [ 2017-09-20 ]

why can't submitted issue at github ~~~~
and the jira is so slowly

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:

INSERT|REPLACE

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.

Generated at Thu Feb 08 04:06:39 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.