Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by neilwatson (Priest)
on Jul 21, 2006 at 19:41 UTC ( [id://562927]=note: print w/replies, xml ) Need Help??


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

Assuming you always have 8 characters then
m/\w{2}(\w{3})\w{3}/ $emc_device = $1

Neil Watson
watson-wilson.ca

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (7)
As of 2024-03-28 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found