Many tasks when refactoring code involve renaming or reordering things, and regular expressions are perfect tools for this.