Forked from stewartduffy/gist:481f21ea4906e611d934
Created
September 14, 2020 09:20
-
-
Save enix-app/a8370aa562387717b81e6c92eac79cb0 to your computer and use it in GitHub Desktop.
Regex to remove file extension from JS string.
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
var filenameFull = "tm_icons.png"; | |
//Regex to remove | |
var filenameText = filenameFull.replace(/\.[^/.]+$/, ""); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment