Regex problem..
Paul Howarth
paul at city-fan.org
Mon Jul 25 19:48:24 UTC 2005
On Mon, 2005-07-25 at 21:45 +0200, Gregory Machin wrote:
> Hi.
>
> Please could you advise me...
> I have php pages that are stored in a mysql database, that will later
> be imported into a cms
> I want to use mysql's regex funtion to remove unwanted php code and
> update links to images
> and urls.
>
> But i cant seem to get my brian around the regex part ...
>
> i want to remove the header include <?php require("./include/header1");?>
> i tried <\?php[^>][header1].*\?> , and other attempts but no luck ..
> unfortunetly i can do a normal string replace because of varations,in
> the code ...
[header1] is a character class containing the following letters:
a d e h r 1
I guess that's not what you wanted really.
Paul.
--
Paul Howarth <paul at city-fan.org>
More information about the fedora-list
mailing list