Hacker News new | ask | show | jobs
by johnnymellor 492 days ago
If I understand correctly the following ttre expression does what you're asking for:

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

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! :)