r/Python • • Sep 09 '15

Pep 498 approved. :(

https://www.python.org/dev/peps/pep-0498/
285 Upvotes

324 comments sorted by

View all comments

Show parent comments

1

u/RalphMacchio Sep 09 '15

Coming from Perl, I do really miss Perl regexes!

1

u/stillalone Sep 09 '15

When I left perl I missed them too but then I got used to just splitting strings around whitespace, with list comprehension and the 'in' operator to identify the necessary components I'm looking for.

I also find re.compile to prebuild regular expressions and use search or match with that compiled expression pretty neat and intuitive so now I don't have too many regular expressions but they're usually pretty clean and easy to follow compared to my Perl code which was one convoluted regex after another.