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

The most important things to learn about regex are greed and boundaries.

Nobody cares about 'cat' for that you use a basic replace function in your preferred language, so when you learn about masks and patterns you need to understand when to start and when to stop.

Finding everything between quotes ".*" is not gonna give you what you expect.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: