Last active
November 27, 2016 15:47
-
-
Save Angelfire/7304a77f8fbb6ae4d0867ed73228fad9 to your computer and use it in GitHub Desktop.
replace using regex
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
let format = 'BLACK: 5:00 MIN/KM'; | |
format.replace(/MIN|KM|MI/gi, $1 => $1.toLowerCase()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment