Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: