revise "([^/]+)$" into '([^/]+)$' in a lot of files under a directory.

Hongyi Zhao hongyi.zhao at gmail.com
Sun Nov 17 09:50:56 EST 2019


Hi,

I have a lot of files which resides under a directory, and I want to 
resive all of the content  "([^/]+)$" in these files into '([^/]+)$'.

I have tried with sed/xargs, but it seems so difficult for dealing with 
the \ ,   is there any convinent method to to this job with python? 

Regards


More information about the Python-list mailing list