regExp Question

in the [-\w] what does the - mean is it considered as a code or it's just a letter
1 Reply
Jochem
Jochem3y ago
just a letter in this case - for well... -, and \w for word characters, it's only a special character when it's between two others, so a-z means everything from a through z, so if it's just the literal it's usually at the start or end of the character class
Want results from more Discord servers?
Add your server