Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Add space in long string

by jethro (Monsignor)
on May 28, 2013 at 12:20 UTC ( [id://1035580]=note: print w/replies, xml ) Need Help??


in reply to Add space in long string

$bin=~s/(\d{4})/$1 /g

Don't ask what happens if the length of your bin string isn't divisible by 4 ;-)

Replies are listed 'Best First'.
Re^2: Add space in long string
by lddzjwwy (Novice) on May 28, 2013 at 12:23 UTC
    Haha thanks dude!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1035580]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2025-07-11 08:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.