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

If I understand correctly the following ttre expression does what you're asking for:

  ":'(':(\\')|[^"'])*":'


So this is how it feels to read a regex when you don't know how to regex.


Good point, I didn't think of that solution.


Thank you for doing my work! :)




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

Search: