Partly related to regular expression, the code is finding any tab indentation and replacing it with a single space...check regular expression and escape sequences for more information regarding the \t