regex help

From: Date: Sun, 01 Aug 2004 13:27:51 +0000
Subject: regex help
Groups: php.general 
Request: Send a blank email to php-general+get-192434@lists.php.net to get a copy of this message
I am at the tailend of a project that involves moving legacy data from one dbms to another. The client has added a new requirement to the data manipulation that is required. I need to remove all <br /> tags (there may be more that one) that appear within all <h*> tags. I am not very familiar with building regular expressions, but I see this as a 2 part process. First, to grab <h*> tags, and second, to strip the br's. I can grab the beginning of the tag easily, but my expressions grab too much. Also, I am not sure how to remove the br's. Any help would be appreciated. I have tried to find similar examples, but without any luck. Also, php5 is not an option at this point. Kathleen

« previous php.general (#192434) next »