99

My cousin has learnt regex. He's now building an HTML parser in regex.

Should I tell him, or enjoy him suffer?

Comments
  • 31
    You should tell him else he will become "HTML developer" 😂🔫
  • 15
    Well how much of the html is he parsing?
    Yes it’s true you can’t regex html, you can regex particular elements out though.
  • 6
    you should tell him to become web developer
  • 26
    Tell him that ḫ̡̪͖̪̺̐̿̊͑͌̿͒̋͠ę͉̑̆̍̉͗̾ ̧̤̣̫̰̹͗̑͊̾͆ͪ̚͡ͅw̶̩̫͇̖̏̋͊̕i̤̟͒ͫͯ͞l̶̰͍͎̠̦̬͔͂͑͗ͭ͌ͬ͡ļ̪̖͉͓̹̯͔̖̈́̾̂͛̓̚̕ ̨̮̩̩̎̃͑͐́̃͗c͓̫̥̮̗̿̅͋̒̀͘o̟͕͔͇̝ͣͯͅm̆͒͏̮̦̤̭e̖̺͕̫̭͚͓͍ͬ͂͐̾̋ͭ̐͋
  • 15
    soon he'll also solve the halting problem
  • 4
    Revel in his suffering until he breaks, then show him the relevant question in SO.
  • 2
    @C0D4 I think he's trying to parse arbitrary HTML.
  • 10
    Trying to do stuff like that is actually a good learning experience - trying to do it is the best way to properly understand all the pitfalls and impossibilities. Plus you get to experience firsthand the utter pain of regex in all its gory glory, of course.
  • 6
    Let him carry on. He may well make a breakthrough!
    Then direct him at the halting problem.
  • 7
    Let him do it. He probably won't be able to do it but he'll emerge a regex master and much wiser. I've found it's sometimes better to let someone attempt and fail at something you know can't be done, than to tell them it cannot be done.
  • -1
    ahan! not good. Tell him..
  • 3
    @morcerfdumas He gave up and went to sleep lol.
  • 1
    @BrokenMutant well that didn’t take long 😬
  • 2
    @teadrinker this is exactly the reasoning behind my earlier reply. :)
  • 1
    @coci did you mean, become spidey? :p
  • 0
    @S-Homles no just tell him become a web developer
  • 1
    10/10 would let him suffer tho.

    He'll learn that in development, you sometimes have to learn the hard way ;)
Add Comment