Created
April 10, 2017 09:52
-
-
Save sarkarshuvojit/643344ac6e5b59267d87d00327c84dc5 to your computer and use it in GitHub Desktop.
Regex to search for all codeigniter-style urls containing base_url and convert them to laravel-style urls
This file contains 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
search : \<\?php echo base_url\(\)\; \?\>(.*\.js) | |
replace: {{ URL::assets(\'$1\') }} | |
search : \<\?php echo base_url\(\)\; \?\>(.*\.css) | |
replace: {{ URL::assets(\'$1\') }} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment