Re: regex lying to me

2005-04-20 Thread John W. Krahn
angie ahl wrote: On 4/19/05, angie ahl wrote: The following regex is failing strangely: my @tables = $content =~ m#\[table\](.*?)\[/table\]#g; foreach (@tables) { my $table = $_; if ($content =~ m#$table#) {print "yes old table is there!\n";} } @t

Re: regex lying to me

2005-04-20 Thread angie ahl
Thanks I know that there are metachars in the result. non printing chars that I need to leave there until a later part of the processing. I don't get why this would affect the result though. Cheers Angie > On 4/19/05, angie ahl wrote: > > The following regex is failing strangely: > > > >

Re: regex lying to me

2005-04-19 Thread Offer Kaye
On 4/19/05, angie ahl wrote: > The following regex is failing strangely: > > my @tables = $content =~ m#\[table\](.*?)\[/table\]#g; > foreach (@tables) { > my $table = $_; > if ($content =~ m#$table#) {print "yes old table is > there!\n";} >

RE: regex lying to me

2005-04-19 Thread Wagner, David --- Senior Programmer Analyst --- WGO
angie ahl wrote: > The following regex is failing strangely: > > my @tables = $content =~ m#\[table\](.*?)\[/table\]#g; > foreach (@tables) { > my $table = $_; > if ($content =~ m#$table#) {print "yes old table is there!\n";} > } > > @tables contains