Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

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.

Comment on Re: Retain first 4 characters of a string
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (7)
As of 2015-07-04 11:05 GMT
Find Nodes?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...

    Results (59 votes), past polls