mavericknik has asked for the wisdom of the Perl Monks concerning the following question:
I have a quick regex question. What would be the best way to replace multiple tabs at the start if a line with spaces. I want to replace each tab with 4 spaces, and there are a variable number of tabs at the start of each line.
My thought was to replace each tab with another garbage value recursively and the replace that garbage value with 4 spaces on another regex. Anymore efficient way of doing this?