Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: Replace multiple tabs with spaces at start of a string

by Eily (Prior)
on May 17, 2017 at 13:10 UTC ( #1190457=note: print w/replies, xml ) Need Help??


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";

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1190457]
help
Chatterbox?
[erix]: heh, slackware is 25 years old. That was probably the first linux I used. 24 floppies, wikipedia says. I still have two such series I think

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2018-07-17 17:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (374 votes). Check out past polls.

    Notices?