in reply to Re: Replace multiple tabs with spaces at start of a string
in thread Replace multiple tabs with spaces at start of a string

++

With the /m modifier, the first solution also works on multiline input: print $_ and print s/(^|\G)\t/____/mgr for "\tHello\t\n\t\tWorld\t!\n\t!\n";