Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: how to guess mutual frases?

by arkturuz (Curate)
on Jul 30, 2013 at 09:00 UTC ( #1046978=note: print w/ replies, xml ) Need Help??


in reply to how to guess mutual frases?

You could use regexp to extract names:

my @files = (qw( hhk_1sss-(hello).txt hhk_2abc-(hello).txt hhk_3xyz-(hello).txt )); my @new_files = map { /^.*_(\d[a-z]{3}).*(\.txt)$/; "$1$2" } @files;


Comment on Re: how to guess mutual frases?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2015-07-29 19:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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









    Results (267 votes), past polls