Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
secondhandvape
· 12y ago · 0 comments
The question mark in the example regex isn't necessary, in case anyone was wondering.
Comments
[–]
primo44
12y ago
It's necessary. It makes the "s" in "hotels" optional, so that the regex can match either "hotel" or "hotels" and then the rest.
[–]
mikejarema
12y ago
Doesn't it imply a search for hotel OR hotels?