[MXS-292] Incorporate PCRE library; make more use of regex Created: 2015-07-29  Updated: 2017-12-01  Resolved: 2015-11-16

Status: Closed
Project: MariaDB MaxScale
Component/s: Core
Affects Version/s: 1.2.0
Fix Version/s: 1.3.0

Type: New Feature Priority: Major
Reporter: martin brampton (Inactive) Assignee: markus makela
Resolution: Fixed Votes: 0
Labels: None


 Description   

There are a number of instances of pattern matching in MaxScale, such as analysis of options from the configuration file. Code could be reduced and made more elegant by use of regular expressions. In addition, matching could be made more flexible e.g. by allowing white space around options. The PCRE library is available at http://www.pcre.org/ and is free to use.

All use of the POSIX regex should be replaced with the use of the bundled PCRE2 library.



 Comments   
Comment by markus makela [ 2015-08-03 ]

MaxScale already does checking for the presence of the PCRE library. This should be rather easy to implement from the building perspective.

Comment by markus makela [ 2015-09-01 ]

PCRE has been incorporated into MaxScale to aid in configuration file processing. It is used to clean up the parameter values of any extra commas.

Comment by markus makela [ 2015-10-20 ]

Added bundled PCRE2 library to MaxScale and updated the regexfilter to use it.

Comment by markus makela [ 2015-11-16 ]

All parts of MaxScale now use PCRE2 instead of PCRE.

Generated at Thu Feb 08 03:58:12 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.