13

Guys. GUYS. There are so many freaking weird edge cases for regular expression evaluation. *head desk*

Comments
  • 0
    What are you trying to do?
  • 5
    @RememberMe Still working on that stupid pipe dream of a program to generate more human-readable English descriptions for regular expressions in order to create an extension to append those as code comments.
  • 7
    @AmyShackles Blasphemy! Regex isn't meant to be read by mere humans!
  • 1
    @DustInCompetent Maybe that’s been my problem this whole time! 0.0
  • 2
    it is indeed an intense love/hate relationship
  • 0
    Regular expressions aren't meant to be understood, they're meant to be magic. The other day I was trying to nuke specific drives on an install (Storinator by 45 Drives) and randomly pulled out '/dev/sd[^abd]$' I don't know what possessed me to put the ^ inside the bracket, or the $ at the end, but it successfully pulled every device it needed, and ignored the partitions because apparently $ meant end of line. I know I studied this witchcraft at some point in college but I've never actually used it like that. Then you have people who can even pull data out of regular expressions! /(1/). My heroes lol
  • 6
    @Rudi *eye twitch* I have so many regex rules in my head right now, it’s gotten to the point that I occasionally look for issues in other libraries to see if I can help clarify things because I KNOW TOO MUCH NOW.
  • 3
    @AmyShackles you the real MVP
Add Comment