Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
LaputanMachine
· 1y ago · 0 comments
I've also seen people use `[\s\S]` to match all characters when they couldn't use `.`.
Comments
[–]
tomsmeding
1y ago
This is a common approach when the regex needs to match any character
including newlines
; `.` often doesn't.
[–]
dimava
1y ago
I generally use `[^]`
Also you can use . with the dotAll /s