Last active
August 29, 2015 14:22
-
-
Save JonoB/de0af1bfb34666e887d6 to your computer and use it in GitHub Desktop.
Laravel Upgrade Form helpers from L4 to L5
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
Regex search and replace for form helpers as follows: | |
Search: | |
\{\{ (Form\:\:.+) \}\} | |
Replace: | |
{!! $1 !!} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sometimes we have spaces between the {{ Form, sometimes we don't {{Form.
This modified regex would work well for both scenarios: {{[ ]{0,}(Form::.+)[ ]{0,}}}