Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: print number of characters after specific character

by johngg (Abbot)
on Sep 12, 2013 at 10:06 UTC ( #1053693=note: print w/replies, xml ) Need Help??


in reply to print number of characters after specific character

Perhaps split using a look-ahead?

$ perl -E ' > $str = q{471234973798375754773971832374974447889743725345932}; > say for split m{(?=47)}, $str;' 47123497379837575 47739718323749744 47889743725345932 $

Cheers,

JohnGG

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1053693]
help
Chatterbox?
[erix]: (damn Discipulus for speaking in IQ tests :P )

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2017-11-17 20:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (272 votes). Check out past polls.

    Notices?