Skip to content

Commit d8711f6

Browse files
committed
add preg_match expression
1 parent 137605e commit d8711f6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/StringExpressionLanguageProvider.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public function getFunctions(): array
2424
ExpressionFunction::fromPhp('strip_tags', 'stripHtml'),
2525
ExpressionFunction::fromPhp('json_decode', 'decode'),
2626
ExpressionFunction::fromPhp('preg_replace', 'replaceByExpression'),
27+
ExpressionFunction::fromPhp('preg_match', 'matchExpression'),
2728
new CapitalizeWords('capitalizeWords'),
2829
ExpressionFunction::fromPhp('rtrim', 'removeWhitespaces'),
2930
ExpressionFunction::fromPhp('explode', 'splitIntoArray'),

0 commit comments

Comments
 (0)