Created
May 10, 2020 09:07
-
-
Save opr/155a77a917a23e6bae13ea8f58577942 to your computer and use it in GitHub Desktop.
Regex for matching functions defined using the function keyword
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
Find: function (\w*)\s?(\(.*?\))\s?\{ | |
Replace with: const $1 = $2 => { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment