Python, Erlang, Map/Reduce If you’re looking for cheap optimizations, initialize a regexp object outside the loop and save a lot of parsing. Posted by dbt