Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: match sequences of words based on number of characters

by frozenwithjoy (Curate)
on Feb 17, 2013 at 21:37 UTC ( #1019219=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -E '
    my $string = "xxxx yy zzzzz xxxx qqq xxxx yy zzzzz xxxx qqq";  
    ...
    say "@array";
    '
    yy xxxx qqq yy xxxx qqq
    
  2. or download this
    #!/usr/bin/env perl
    use strict;
    ...
    Regex: (?^:\b(\w{2})\b)(?^:.+?\b(\w{4})\b)(?^:.+?\b(\w{3})\b)
    Match: yy xxxx qqq yy xxxx qqq
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (16)
As of 2015-07-02 16:46 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 (44 votes), past polls