Re: [PHP-DB] eregi sentence

2003-12-01 Thread Nikos Gatsis
Ivan hello Yoy really help me a lot! Thanx - Original Message - From: "Ivan Fomichev" <[EMAIL PROTECTED]> To: "Nikos Gatsis" <[EMAIL PROTECTED]> Sent: Sunday, November 30, 2003 6:56 PM Subject: Re: [PHP-DB] eregi sentence > Hello Nikos, > > Su

Re: [PHP-DB] eregi sentence

2003-11-30 Thread Ivan Fomichev
Hello Nikos, Sunday, November 30, 2003, 10:29:19 AM, you wrote: NG> Can somebody tell me what is wrong with the following? NG> $body=eregi_replace("]*)>(.+)", " target=\"_blank\" class=\"down_txt\">\\3", $body); 1) /.+/ is too greedy. You should use something like /[^"]+/ or /.+?/ instead (se

[PHP-DB] eregi sentence

2003-11-30 Thread Nikos Gatsis
Hello list. Can somebody tell me what is wrong with the following? $body=eregi_replace("]*)>(.+)", "\\3", $body); where $body is comming from a MySQL BLOB with text. All I want to do is to "replace" the " or " whith but it doesn't seems to work right. For example, in the same text replace the