Skip to content

Instantly share code, notes, and snippets.

@archey347
Last active August 24, 2024 22:17
Show Gist options
  • Select an option

  • Save archey347/3f44023143599b404e27ccfdf799a531 to your computer and use it in GitHub Desktop.

Select an option

Save archey347/3f44023143599b404e27ccfdf799a531 to your computer and use it in GitHub Desktop.
Regex for updating Userfrosting routes

Find

['"][a-zA-Z\\]+\\([a-zA-Z]+):([a-zA-Z]+)['"]

Replace

[$1::class, '$2']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment