315
[xkcd] Regular Expressions (10 Jan 2007)
(programming.dev)
A community for sharing comics related to programming
Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient
I've never bothered to learn regex because I can do this sort of stuff easily in Python. For any non-trivial job it's better to have things like error handling, statistics, logs and *gasp* readability.
Are you not using regex in Python to do that?
No. Never saw the need.
Regex is fast and useful though. It's a tool in your toolbox that make certain situations extremely easy as the comic depicts.
Sure. I'm just saying it was never worth the effort to learn it for me.
I guess I'm just not sure what your doing in Python that is equivalent in some way to regex without using the
re
library. Like, do you mean you're using loopedif
s and raw strings to do something similar?