Jump to content

[SOLVED] matching/replacing problem


resago

Recommended Posts

this

    $a=preg_replace('/md5 *\( *(.+) *\)/is','$1',$a);#in case we missed some in the first pass

 

mostly works, except for:

 

before:

$sQuery = "UPDATE `Profiles` SET `Password` = md5(`Password`) WHERE `ID`='{$memb_arr['ID']}'";

 

and after:

$sQuery = "UPDATE `Profiles` SET `Password` = `Password`) WHERE `ID`='{$memb_arr['ID']}'";

 

any suggestions? I'm guessing cause my regex is greedy, but I don't see how its matching if its being greedy.

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/89645-solved-matchingreplacing-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.