Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
LaputanMachine
on April 21, 2025
|
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
on April 21, 2025
|
next
[–]
This is a common approach when the regex needs to match any character
including newlines
; `.` often doesn't.
dimava
on April 21, 2025
|
prev
[–]
I generally use `[^]`
Also you can use . with the dotAll /s
Consider applying for YC's Winter 2027 batch!
Applications
are open till November 2.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: