Skip to content

Commit 3389cb5

Browse files
committed
Added a new function that allows to search and replace by regular expression
1 parent cbdad3d commit 3389cb5

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
@@ -23,6 +23,7 @@ public function getFunctions(): array
2323
ExpressionFunction::fromPhp('str_replace', 'replace'),
2424
ExpressionFunction::fromPhp('strip_tags', 'stripHtml'),
2525
ExpressionFunction::fromPhp('json_decode', 'decode'),
26+
ExpressionFunction::fromPhp('preg_replace', 'replaceByExpression'),
2627
new FileName('fileName'),
2728
new DateTime('dateTime'),
2829
new FormatDate('formatDate'),

0 commit comments

Comments
 (0)