Find and Replace Simplification

Devyn Collier Johnson devyncjohnson at gmail.com
Sat Jul 20 08:50:18 EDT 2013


On 07/20/2013 07:48 AM, Serhiy Storchaka wrote:
> 19.07.13 21:08, Skip Montanaro написав(ла):
>> Serhiy> The string replace() method is fastest (at least in Python 
>> 3.3+). See
>> Serhiy> implementation of html.escape() etc.
>> I trust everybody knows by now that when you want to use regular
>> expressions you should shell out to Perl for the best performance. :-)
>
> If you want to use regular expressions Python is not the best choice. 
> But if you want to use Python regular expressions sometimes are the 
> best choice.
>
>
That is an interesting concept. (^u^)

Mahalo,
DCJ



More information about the Python-list mailing list