RE: Find string ending with %




Just for starters, a regular expression should use the =~ operator, not
the = operator.

You might have seen some examples like this:

while(<INFILE>){
if($_ =~ /mybigregularexpression/){
Do something...
}
}


Check out 'perldoc perlre'.


-----Original Message-----
From: Keenan, Greg John (Greg)** CTR ** [mailto:gjkeenan@xxxxxxxxxx]
Sent: Tuesday, August 16, 2005 5:10 PM
To: 'beginners@xxxxxxxx'
Subject: Find string ending with %

<snip>


my @oput2 = /\b([0-9]+)%/;


<snip>


.



Relevant Pages