[TYPO3-core] RFC: Support regular expressions in t3lib_matchCondition

Michael Stucki michael at typo3.org
Mon Mar 6 21:38:19 CET 2006


This is a CVS patch request.

It enables the matchWild function to match a regular expression.
Theoretically, this is already possible, though not an elegant solution.

The new patch changes the syntax of matchConditions to match using a simple 
wildcars OR (this is new) match against a PCRE regex IF the testString is 
wrapped in dashes (/).

Documentation changes:

TSref, section "globalString"

- You have the options of putting a regular expression and/or "*" as a 
wildcard to the value.
+ You have the options of putting a "*" as a wildcard or using a PCRE style 
regular expression (must be wrapped in "/") to the value.

- michael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: matchWild.diff
Type: text/x-diff
Size: 1497 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060306/a8698def/attachment.bin 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20060306/a8698def/attachment.pgp 


More information about the TYPO3-team-core mailing list