Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Retain first 4 characters of a string

by nemesdani (Friar)
on Aug 24, 2012 at 09:05 UTC ( #989458=note: print w/replies, xml ) Need Help??


in reply to Retain first 4 characters of a string

1. You can split by space and process every word.
2. You can capture the first 4 characters between word boundaries (\b) globally.

I'm too lazy to be proud of being impatient.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://989458]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2017-04-26 10:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (471 votes). Check out past polls.