64x64 icon dark hosting
Choose a hosting plan here and get a free year's subscription to Tuts+ (worth $180).

Advanced Search and Replace With RegEx


Start a hosting plan from $3.92/mo and get a free year on Tuts+ (normally $180)

It's time for you to learn Regular Expressions. These impenetrable codes will become your search and replace superpower that can prevent you from ever having to do repetitive manual text changes again. I'll be starting at the very beginning and illustrating three common use case examples. These will help you understand just how easy it is to get your head around regex and why it is so powerful.

1. I'll change every instance of 'Dept. of Defence' with 'Defence Department'
2. I'll change sets of double apostrophes with left and right quotation marks.
3. I'll rename a mish-mash of different image files into a coherent list.

These three, real-world examples demonstrate the true power of regular expressions in search and replace. You will soon be manipulating text like magic!

Advanced Search and Replace With RegEx