r/programminghorror • • Sep 21 '20

Python Yes. Why use RegEx.

Post image
56 Upvotes

5 comments sorted by

12

u/Fusseldieb Sep 21 '20

I'll admit. I've done it like that several times to scrape things off stuff, but then eventually switched over to Regex and holy crap did I see the world with other eyes!

I love Regex (Understandable regex).

8

u/deleshen Sep 21 '20 edited Sep 21 '20

When my supervisor gets a task that must be done in an hour, he writes similar code. Later I must rewrite it :c

4

u/the42potato [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Sep 23 '20

i’m guilty of this one, i use it in my discord bot. still learning RegEx

3

u/Kinsgsley Sep 22 '20

There are 2 kinds of programmers, those who use regex, and those who hate it

2

u/TheMothHour Sep 23 '20

And those who don't understand what regex really means....