[PHP] Match anything between two " that is not a " except if it is escaped...

2008-01-17 Thread mathieu leddet
Hi everyone, I am struggling with regular expression trying to match strings delimited by double quotes, but taking into consideration that \" is not a string ending character. ---8<--- - $in = 'this is a string : "Hi everyone my na

RE: [PHP] Re: Match anything between two " that is not a " exceptifit is escaped...

2008-01-17 Thread mathieu leddet
Thanks a lot Max (and Jochem), you solved my issue. Cheers from Bordeaux in France ! -- Mathieu, learning everyday. -Message d'origine- De : Max Antonov [mailto:[EMAIL PROTECTED] Envoyé : Thursday, January 17, 2008 12:36 PM À : php-general@lists.php.net Objet : Re: [PHP] Re: Match anyth

RE: [PHP] Re: Match anything between two " that is not a " exceptifitisescaped...

2008-01-17 Thread mathieu leddet
ge d'origine- De : Max Antonov [mailto:[EMAIL PROTECTED] Envoyé : Thursday, January 17, 2008 3:04 PM À : php-general@lists.php.net Objet : Re: [PHP] Re: Match anything between two " that is not a " exceptifitisescaped... Jochem Maas : > mathieu leddet schreef: >> Thanks

[PHP] Comparing files

2008-03-12 Thread mathieu leddet
Hi all, I have a simple question : how can I ensure that 2 files are identical ? How about this ? 8<-- function files_identical($path1, $path2) { return (file_get_contents($path1) == file_get_contents($path2)); } 8

RE: [PHP] Comparing files

2008-03-12 Thread mathieu leddet
k [mailto:[EMAIL PROTECTED] Envoyé : Wednesday, March 12, 2008 12:09 PM À : php-general@lists.php.net Objet : Re: [PHP] Comparing files Quoting mathieu leddet <[EMAIL PROTECTED]>: > Hi all, > > I have a simple question : how can I ensure that 2 files