Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
LaputanMachine
11 months ago
|
parent
|
context
|
favorite
| on:
Regex Isn't Hard (2023)
I've also seen people use `[\s\S]` to match all characters when they couldn't use `.`.
tomsmeding
11 months ago
|
next
[–]
This is a common approach when the regex needs to match any character
including newlines
; `.` often doesn't.
dimava
11 months ago
|
prev
[–]
I generally use `[^]`
Also you can use . with the dotAll /s
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: