Last active
July 17, 2019 22:50
-
-
Save adamrosloniec/3ba3a2921466a7037bbf7e4299615aa9 to your computer and use it in GitHub Desktop.
Regex - Polish Language with some (soft) special characters
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 dataOld = ...; | |
var dataNew = dataOld.replace(/[^0123456789aąbcćdeęfghijklłmnńoópqrsśtuvwxyzźżAĄBCĆDEĘFGHIJKLŁMNŃOÓPQRSŚTUVWXYZŹŻ\ \!\"\#\$\%\&\'\(\)\+\,\.\/\:\;\<\=\>\?\@\[\]\_\`\{\|\}\–\—\‘\’\‚\“\”\„\…\-]/g, ''); | |
return dataNew; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment