On Sun, 9 Mar 2003, Electron One wrote:
> Hello Everyone,
>
> If I have a file that contains this,
>
> test3.txt##
> wilma
>
> wimagren was here
>
> twilma was type wilma
>
> wilma
>
> wilma
>
> wilma
>
> twowilm
PROTECTED]
Betreff: Re: Regular Expression matching problem
Not if the fourth to sixth lines don't have a space before the end of line.
Try if(/wilma\s*/). Actually, you'll need to use if(/wilma/g) to c
|
| cc: electron One <[EMAIL PROTECTED]>
|
| Subject: Regu
Electron One <[EMAIL PROTECTED]> wrote:
> while(<>){
> chomp;
> if(/wilma\s+/){
>print "wilma was mentioned\n";
>}
> }
>
> #
>
> and I type, perl -w perlname.pl test3.txt
> shouldnt th
Hello Everyone,
If I have a file that contains this,
test3.txt##
wilma
wimagren was here
twilma was type wilma
wilma
wilma
wilma
twowilmase
###