Hacker News
new
past
comments
ask
show
jobs
points
by
reichstein
10 hours ago
|
comments
by
MomsAVoxell
9 hours ago
|
next
[-]
[\s\S] vs. [^]
A quixotic windmill tilt if ever I saw one.
reply
by
GoToRO
9 hours ago
|
prev
|
[-]
ai says [^] is not portable; I did not test it. Too bad, I'll stick to [\s\S].
reply
by
spiesd
7 hours ago
|
parent
|
[-]
Too bad, indeed. It's well-defined in javascript (and thus, appropriate in this admittedly niche context). It's non-portable across different regex engines, yes.
reply