Python e regular expression

Letto oggi sul newsgroup comp.lang.python:

Thank goodness regexs are an “extra” in Python, because it discourages noobs from pulling out the 80 pound sledgehammer of the regex engine to crack the peanut of a test-and-concatenate — Steven D’aprano

Il che mi ricorda un’altra grande perla di saggezza:

Some people, when confronted with a problem, think “I know, I’ll use regular expressions.” Now they have two problems. — Jamie Zawinski

E per concludere, un classico del genere:

regular expression

Print Print

Post correlati:

  1. The force of regex and HTML together in the same conceptual space will destroy your mind
  2. Python vs. PHP
  3. Python programming revolution