in reply to Regular Expression

Check for whitespace perhaps? Do those tags perhaps span lines? Does $_ still contain what you expect it to contain?

$_ =~ s/<IT>\s*<\/IT>//gi;
Update: Thanks you ysth for the correction.

Replies are listed 'Best First'.
Re: Re: Regular Expression
by perlinit (Initiate) on Apr 19, 2004 at 19:41 UTC
    That worked. I tried everything but that. I didn't try that because the is not any whitespace there. Oh well. Thank You Phil