Skip to content

Instantly share code, notes, and snippets.

@JonoB
Last active August 29, 2015 14:22
Show Gist options
  • Star 12 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JonoB/de0af1bfb34666e887d6 to your computer and use it in GitHub Desktop.
Save JonoB/de0af1bfb34666e887d6 to your computer and use it in GitHub Desktop.
Laravel Upgrade Form helpers from L4 to L5
Regex search and replace for form helpers as follows:
Search:
\{\{ (Form\:\:.+) \}\}
Replace:
{!! $1 !!}
@ashishkadam
Copy link

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