Welcome to the Monastery | |
PerlMonks |
Re^2: Replace multiple tabs with spaces at start of a stringby Eily (Monsignor) |
on May 17, 2017 at 13:10 UTC ( [id://1190457]=note: print w/replies, xml ) | Need Help?? |
++ 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";
In Section
Seekers of Perl Wisdom
|
|