in reply to Regular Expression Help
You could approach that problem from at least two sides:
The second approach makes only sense when you know all variations. It could look like the following:
my %Freds = ( 'Fred Joe Inc Software Company' => 1, 'Software Fred Joe Co.' => 1, # ... ) my @Texts = $file =~ /<font.*?>(.*?)<\/font>/ig; foreach (@Texts) { print $_ if $Freds{$_}; }
~Django
"Why don't we ever challenge the spherical earth theory?"
|
|---|