Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
eyelidlessness
· 3y ago · 0 comments
> As someone who has written a lot of regexen
There are at least \d of us!
Comments
[–]
labster
3y ago
More than that, there are \d+ of us! Or, since I’ve been writing Lua recently, %d+ of us.
[–]
eyelidlessness
OP
3y ago
Heh I almost edited it to \d+ but also I considered [0-9]{2,} and then I thought more on it and realized (?<!^)\d(?!$) is pretty open ended.
[–]
RobSm
3y ago
You need to upgrade your knowledge. Use only [2-9]. That's it.
[–]
RobSm
3y ago
There are at least 1 of us!
Looks weird :)