Tagged: regex
Using Python for super fast regex search and replace
Posted: December 20, 2011
Category: Python
Tagged: command line, python, regex
I recently needed to do a regex search and replace on a large MySQL file. I often use my code editor for search & replace but I tried Komodo Edit, Sublime Text 2, and Gedit and they struggled greatly to open the file and none of them could search it. I know there's sed, grep + awk, etc. but I decided to give Python a try since I've been working at learning it.

