Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Xelbair
on Oct 28, 2019
|
parent
|
context
|
favorite
| on:
Ask HN: What is the most beautiful piece of code y...
I once had to find all lines which did not contain a specific word. As back then i was absolutely new to regex stackoverflow came to the rescue - and i still have that link saved to this day -
https://stackoverflow.com/a/406408
Regex for that is just great
^((?!word).)*$
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Regex for that is just great