problems with case insensitive tr/// regexp

2003-11-27 Thread Dan Anderson
I'm trying to create a script to remove all font tags from an HTML documents. I created a regular expression like this: ,[ working code | use strict; | use warnings; | my $foo =" whe"; | $foo =~ tr/\<.*font.*\>//d; | print $foo, "\n"; `--- Bu

Re: problems with case insensitive tr/// regexp

2003-11-27 Thread Daniel Staal
--As off Thursday, November 27, 2003 7:42 PM -0500, Dan Anderson is alleged to have said: So what am I doing wrong and how do I make a case insensitive tr/// regexp? Thanks for your help, --As for the rest, it is mine. You can't make a case insensitive tr/// regexp: tr/// doesn't do re

Re: problems with case insensitive tr/// regexp

2003-11-27 Thread Daniel Staal
--As off Thursday, November 27, 2003 7:05 PM -0600, Perl Newbies is alleged to have said: --As off Thursday, November 27, 2003 7:42 PM -0500, Dan Anderson is alleged to have said: So what am I doing wrong and how do I make a case insensitive tr/// regexp? Thanks for your help, --As for t

Re: problems with case insensitive tr/// regexp

2003-11-27 Thread John W. Krahn
Dan Anderson wrote: > > I'm trying to create a script to remove all font tags from an > HTML documents. I created a regular expression like this: perldoc -q "How do I remove HTML from a string" > ,[ working code > | use strict; > | use warnings; > | my $foo =" whe"; > | $foo =

Re: problems with case insensitive tr/// regexp

2003-11-28 Thread R. Joseph Newton
Daniel Staal wrote: ... > You definitely need the s/// operator, (unless you can use one of the > HTML parsing modules). But let's fix that regrexp first, shall we? > > First off, you may have noticed I removed the first '.*' from your > regrexp: that's because nothing is allowed between the open

Re: problems with case insensitive tr/// regexp

2003-11-28 Thread Daniel Staal
--As off Friday, November 28, 2003 1:08 PM -0800, R. Joseph Newton is alleged to have said: s[\][]gsi Cool! Thanks, Daniel, that is very nice work. I could feel myself going back over those first steps in using regexes as I followed your post. --As for the rest, it is mine. Heh, thanks. I'm