in reply to Re: Re: Regular Expression Problem
in thread Regular Expression Problem

I tested it and it removed the <a> tag, leaving <img border="0" src="gova.jpg" width="60" height="46" name="img2" alt="Arkansas Government"></a>. Do you want the <img> tag removed as well?

Replies are listed 'Best First'.
Re: Re: Re: Re: Regular Expression Problem
by Wassercrats (Initiate) on Aug 29, 2002 at 04:15 UTC
    Sorry... I was on a public computer with my time running out and I didn't read my code carefully enough. I want to keep the img tag and everything after the one with href. I think I just have to replace that dot with something. I have to see if /s/S means any number of any character. I've heard conflicting stuff about it. Update... got my s stuff mixed up. Think I just need to add a /s modifier. Better yet, it sounds like I can use a module, but I've come this far, and of the code is right in front of me, I'll use it. Second update... Problem solved. The s modifier after the i modifier worked!