Y
Hacker News
new
|
ask
|
show
|
jobs
by
jakopo87
1398 days ago
I agree, but the dot should be escaped because it matches any character, so "@domain\.com$" should just works for.
1 comments
jasonm23
1398 days ago
Or use [.] so it's super clear on the a-human-is-reading-it parse.
link
account42
1397 days ago
I don't think that's clearer because for [.] I need to remember that . does not need to be escaped in character classes whereas \. is quite clearly an escaped literal character without any advanced regexp knowledge.
link