« Previous | Next » 

Revision 12d815db

ID12d815db47ae371e66218bddfa1a6adfc06e6896

Added by Karsten Dambekalns about 8 years ago

[FEATURE] Allow use of callback function in regex search/replace

Since using the e modifier for preg_replace() is no longer recommended
(deprecated as of PHP 5.5) this is an alternative. If the $replace
argument given to searchAndReplaceRegex() in code migrations is an
anonymous function it will be passed to preg_replace_callback() and
thus allows custom replace operations.

Change-Id: I6279ae1bdb2691d8dbdc2870d55afa0f57ef0a9e
Releases: master

  • added
  • modified
  • copied
  • renamed
  • deleted