Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Laravel Upgrade Form helpers from L4 to L5
Regex search and replace for form helpers as follows:
Search:
\{\{ (Form\:\:.+) \}\}
Replace:
{!! $1 !!}
@ashishkadam

This comment has been minimized.

Copy link

@ashishkadam ashishkadam commented May 29, 2015

Sometimes we have spaces between the {{ Form, sometimes we don't {{Form.
This modified regex would work well for both scenarios: {{[ ]{0,}(Form::.+)[ ]{0,}}}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment