Skrynesaver wrote: » There is only one book, Jeffrey Friedl's Mastering regular expressions
Khannie wrote: » it's a regular expression. They are worth books, but here's a quick overview of that one: s/change this/to this/ The s bit is "substitute". / = start of match part ^ means match start of line then there's a space then there's a grouping of space or \t (tab) the * means any number of times / = end of match part, start of substitute part / = end of substitute part So, putting that all together: Do a substitution. Match the start of a line followed by a space, followed by any number of spaces or tabs, replace with nothing (i.e. delete).