Last active
February 22, 2018 10:00
-
-
Save bekco/91ff4669b4409f723a623cbb098b1483 to your computer and use it in GitHub Desktop.
\Twig_Function_Method to \Twig_Function definition regex replacer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# find: | |
'([a-z_A-Z]+)' *=> *new \\([A-Za-z_]+)_Method\(.*, *'([a-zA-Z_]+)'\) | |
# replace: | |
new \\$2('$1', [\$this, '$3']) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment