News for hackers. Stuff that matters.
Re:Show HN: Regex Cheatsheet by chirss on Friday January 31, 2020 @12:33PM (#22203571)
Honestly don't let this get you down, here's a learning plan (use regex101 to learn)

1) Learn PCRE regex. 2) Try regex golf or cross words to learn PCRE regex. 3) Take the quiz on regex101.

Once you're done with all 3:

Learn the minor/major differences in the other languages. There aren't many. For example this named capture group:

(?<somename>someregex)

Would look like this in a different language:

(?P<somename>someregex)

There's some differences about what language can and cannot do like recursion because someone thought it was a great idea to make javascript awful at regex, but that's besides the point. Regex is totally worth learning.

There are no comments on this comment yet.