Out of curiosity, what happens if you leave off the parentheses on $btwn?

-----Original Message-----
From: Jeff 'japhy' Pinyan
To: Daniel Falkenberg
Cc: Timothy Johnson; [EMAIL PROTECTED]
Sent: 3/7/02 10:07 PM
Subject: RE: Finding words between words...

On Mar 8, Daniel Falkenberg said:

>That is very similar to what I am looking at doing.  The only problem
is
>I don't want to replace anything in between In: and Your;  I just want
>to extract anything between In: and Your and store it as a variable.

  ($btwn) = $str =~ /In:(.*)Your/;

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]
http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/
http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002
**
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of
course.
[  I'm looking for programming work.  If you like my work, let me know.
]


--------------------------------------------------------------------------------
This email may contain confidential and privileged 
material for the sole use of the intended recipient. 
If you are not the intended recipient, please contact 
the sender and delete all copies.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to