Re: regex help
| From: | Jim Grill | Date: | Sun, 01 Aug 2004 14:37:52 +0000 |
| Subject: | Re: regex help | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-192435@lists.php.net to get a copy of this message | ||
Can you post a little sample of the data and your current code?
thanks.
Jim Grill
Web-1 Hosting
http://www.web-1hosting.net
----- Original Message -----
From: "Kathleen Ballard" <klb5770@yahoo.com>
To: <php-general@lists.php.net>
Sent: Sunday, August 01, 2004 8:27 AM
Subject: [PHP] regex help
> 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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>