News for hackers. Stuff that matters.

chirss

Re:Help Me Help You, Maintainers on Monday March 10, 2025 @04:22PM (#43325627)
The list at the end isn't that good though. It's basically dictating this Matt Dugan's preferences. The third one about seven systems is both an exaggeration and a demand.

The rest of this page makes me think it would be really hard to work with Matt, and I'd probably just pass back when I was running projects. It's not worth the effort.

Re:Show HN: Regex Cheatsheet on Wednesday February 12, 2020 @02:25PM (#22311874)
Well yea, it's a joke...
Re:Decentralized Naming and Certificate Authority on Wednesday February 12, 2020 @02:16PM (#22311783)
For real, it can't even work with regular expressions decently.
Re:Show HN: Regex Cheatsheet on Friday January 31, 2020 @04:12PM (#22205795)
boom. https://regex101.com/r/PxSY4U/1 technically it does parse it. :P
Re:Show HN: Regex Cheatsheet on Friday January 31, 2020 @04:04PM (#22205717)
I guess I don't understand. Mind throwing up an example with multiple test strings on regex101.com ? I'd like to take a look and see if I can make a regex which does what you want.

So if you could write the examples there, and then a description like you would tell your mom of what you want I'll see what I can do.

Re:Show HN: Regex Cheatsheet on Friday January 31, 2020 @12:43PM (#22203666)
If you want some help swing by #regex on efnet, happy to help.
Re:Show HN: Regex Cheatsheet on Friday January 31, 2020 @12:42PM (#22203659)
We use it on slack and irc for debugging people's regular expressions all the time. Being able to have 30 revisions to a base regex to troubleshoot is fantastic.

Plus the quiz is awesome.

Re:Show HN: Regex Cheatsheet on Friday January 31, 2020 @12:40PM (#22203630)
Can you explain the problem further?
Re:Show HN: Regex Cheatsheet on Friday January 31, 2020 @12:36PM (#22203605)
regex101 does a good job at showing you what the selected variant can do.
Re:Show HN: Regex Cheatsheet 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.