|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-02-20 04:47 UTC] alan_k@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 17:00:01 2025 UTC |
!!! I have a urgence problem !!! Please show this statements: $sql = "UPDATE TFrusti SET entity='FAN', SYSFLD001='Test with Clob-Data Entity just for test!' WHERE SYSPID = 411"; preg_match("/^UPDATE\s(\w+)\sSET\s(.*?)([WHERE.*|$])/s",$sql,$matches); my problem now is, if in the subject (here the value of the $sql) is the word "Entity" this expression deliver just a truncated match, but if the word "entity" ist in lower-case inside the $sql-Variable the expression deliver the correct matches!!!! Results: $matches[2] with lower-case "entity" shows following value: "entity='FAN', SYSFLD001='Test with Clob-Data Entity just for test!'" $matches[2] with upper-case "Entity" shows this values: entity='FAN', SYSFLD001='Test with Clob-Data" Have anyone a answer or know this problems? Thanks and best regards, Frast Andreas