Issue:Includematch with multiple pattern
From FollowTheScore
Description: | Includematch should be able to run multiple patterns on the same include |
Extension / Version: | DPL / 1.8.9 |
Type / Status: | Change Request / open |
Problem
I want to search a single include for multiple patterns, all of which have to match. (Example: A single template car having 5 parameters name,color,size,seats,format. Now I want to search for all cars having 4 seats and red color.
AFAIK it should be possible using something akin to
{{#dpl: |category=Car |include={Car}:name |includematch=/color\s*=\s*Red/is,/seats\s*=\s*4/is }}
But this does only filter with the first pattern - if this matches, the second pattern is ignored ..