Consider [-.\w]+.
I know [] means either or. I know, usually, . means any character (except a newline).
My initial thought was isn't it pointless to group . next to - and /w since . means anything (apart from new line)?
However, does . here literally mean a full-stop (or period if you're American) because a lot of characters don't need escaping in sets? And . is one of them?
P.s. If you do know the answer, would you mind sharing with me the resource that led to you knowing the answer?
