55

I just wrote 150 characters long REGEX magic. I guess its enough programming stuff for today 😅

Comments
  • 4
    My biggest Wtf is a 1k long sql query xd
  • 22
    Try to read that regex again tomorrow.
  • 5
    @3141 Thats impossible, I had no idea what I was doing, I have no idea what I did and I think I wont have a clue tomorrow too, bot hey, it works. Dont touch it xD
  • 2
    That is crazy. Lets hope it doesn’t have to be modified any time soon :)
  • 1
    @CopyPasteCode it must be so beautiful 😍😂
  • 3
    I'm currently trying to edit a sql query of 2800 lines.
    Oooh, It's a nightmare...
  • 1
    Let's just hope that REGEX is a one time thing.. :/
  • 1
    ...And you're ensuring enough work for future maintainers too 😜
  • 1
    I think the longest Regex I've ever written is like... 50 characters. Even that was enough for me to throw stuff, quit, and go outside to shoot hoops instead.
  • 1
    Regex... If I succeed with a 5 char regex I'm already happy!
  • 0
    People are suprsied about how high sucidal statistics are, but I would try to mill myself too if I should maintain my code with such a puece of an art like 150 characters long regex 😂
  • 0
    ... hopefully you did the poor fella that has told debug that thing a favor, and split it up with comments..

    Heck, I've extracted string builder classes for complicated regexes..
    And SQL queries..
  • 1
    @santartine noone does. You just punch the keyboard untill you get desired output, its like machine learning, just less cool.

    Edit: this comment looks cool, let me make a separate rant from it 😂
  • 0
    @samee what are you querying ?!
  • 2
    I had the pleasure of debugging a regex parser once.....
    Ah, memories
  • 0
    @austinhaha I didn't get that.. 😐
  • 0
    @santartine it's super useful for writing interpreters and compilers (which is 80% of my off-time since I'm developing my own language at the moment). I love them and hate them.
  • 0
    Django got rid of writing sql.
    Django 2.0 got rid of regex.

    Get with the times...😜
Add Comment