"raphael()" <raphael.j...@gmail.com> wrote on Fri, 18 Sep 2009
22:10:01 +0530:

>Hi
>
>How do I pick out matching words if there are more than one on the same
>line?
>
>
>Example
>
>INFILE.TXT
>
>www.site01.com www.site02.com www.site03.com
>www.site04.com
>
>------
>
>while (<>) {
>    if ( m!(www.\S+.com)!s ) {

Try m!(www.\S+.com)!sg
(See "Regexp Quote-Like Operators" in Perlop.)

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to