19

I am in love with regex (re in py)!
It is so damn cool!
Unfortunately, Python's find is faster.
But regex is so much better when it comes to complex patterns you would not be able to find with the regular (do you see the pun here? ;)) python's string object find method.

Comments
  • 3
    If you want to up your pattern handling game check out pyparsing for parser building tools, it's a pretty cool library that allows you to write your parser using a syntax that mimics Backus-Naur form. Great for building quick-and-dirty parsers.
  • 2
    Time to you to play Regex Golf
  • 1
    @RememberMe this and LR parsers are in my to-learn bucket, good suggestion.
  • 1
    @andrefarzat thanks!
    It is a really cool game!
Your Job Suck?
Get a Better Job
Add Comment