Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 about the Monastery: (4)
As of 2014-09-21 10:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls