Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: a Couple of questions!

by bart (Canon)
on Sep 20, 2003 at 14:11 UTC ( [id://292857]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $count = () = $data =~ m/and/g;
    
  2. or download this
    my($next_word) = /and(?=\W*(\w+))/;
    
  3. or download this
    my @pairs = /(and)(?=\W*(\w+))/g;
    
  4. or download this
    $_ = 'foo and bar and baz went to the sea.';
    my @pairs = /(and)(?=\W*(\w+))/g;
    print join "#", @pairs;
    
  5. or download this
    and#bar#and#baz
    

Log In?
Username:
Password:

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

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

    No recent polls found