Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Match and extract three characters from the middle of a string

by sh1tn (Priest)
on Jul 22, 2006 at 10:34 UTC ( [id://562994]=note: print w/replies, xml ) Need Help??


in reply to Match and extract three characters from the middle of a string

Just count carefully:
# . (dot) symbol means any character # take 3rd, 4th and 5th chars $inq =~ m|..(...)|; print $1;


  • Comment on Re: Match and extract three characters from the middle of a string
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2024-04-23 17:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found