Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
mutation
· 14y ago · 0 comments
It doesn't. Space is significant here, and if '-' is a the front of the matching character class it matches literal '-'. Your regex '[- ~]' matches either '-' or ' ' or '~'.
Comments
No comments yet.
Better HN