Re: [PHP] Re: preg_replace question

2012-12-12 Thread Curtis Maurand
On 12/12/2012 3:47 PM, Maciek Sokolewicz wrote: On 12-12-2012 21:10, Curtis Maurand wrote: On 12/12/2012 12:00 PM, Maciek Sokolewicz wrote: On 12-12-2012 17:11, Curtis Maurand wrote: I have several poisoned .js files on a server. I can use find to recursively find them and then use preg_repla

[PHP] Re: preg_replace question

2012-12-12 Thread Maciek Sokolewicz
On 12-12-2012 21:10, Curtis Maurand wrote: On 12/12/2012 12:00 PM, Maciek Sokolewicz wrote: On 12-12-2012 17:11, Curtis Maurand wrote: I have several poisoned .js files on a server. I can use find to recursively find them and then use preg_replace to replace the string. However the string is f

[PHP] Re: preg_replace question

2012-12-12 Thread Curtis Maurand
On 12/12/2012 12:00 PM, Maciek Sokolewicz wrote: On 12-12-2012 17:11, Curtis Maurand wrote: I have several poisoned .js files on a server. I can use find to recursively find them and then use preg_replace to replace the string. However the string is filled with single quotes, semi-colons and a

Re: [PHP] Re: preg_replace question

2012-12-12 Thread Ashley Sheridan
Maciek Sokolewicz wrote: >On 12-12-2012 17:11, Curtis Maurand wrote: >> I have several poisoned .js files on a server. I can use find to >> recursively find them and then use preg_replace to replace the >string. >> However the string is filled with single quotes, semi-colons and a >lot >> of o

[PHP] Re: preg_replace question

2012-12-12 Thread Maciek Sokolewicz
On 12-12-2012 17:11, Curtis Maurand wrote: I have several poisoned .js files on a server. I can use find to recursively find them and then use preg_replace to replace the string. However the string is filled with single quotes, semi-colons and a lot of other special characters. Will preg_relace

[PHP] Re: preg_replace question

2003-02-23 Thread Phil Roberts
[EMAIL PROTECTED] (Electroteque) wrote in news:[EMAIL PROTECTED]: > yet another regex question how could i hange the value within the > quotes with preg_replace > > php_value upload_max_filesize "5M" > > $str = preg_replace("#php_value upload_max_filesize\s?['\"](.+?)[\"']#i", "php_value upl