Topic awaiting preservation: Strange Regular Expression Error (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Harrow, Ontario, Canada |
posted 05-30-2002 20:02
Okay, I'm writing a news system that can dynamically load up and insert emoticons. I keep getting this error: |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 05-30-2002 21:18 |
Paranoid (IV) Inmate From: Harrow, Ontario, Canada |
posted 05-30-2002 22:07
That worked perfectly! Thanks. |
Paranoid (IV) Inmate From: Harrow, Ontario, Canada |
posted 05-30-2002 22:43
Now I can't make it go the other way! The text is a 100% match, but both ereg_replace and str_replace refuse to perform the replacement! |
Maniac (V) Mad Scientist From: Rochester, New York, USA |
posted 05-30-2002 23:03 |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 05-30-2002 23:14 |
Paranoid (IV) Inmate From: Harrow, Ontario, Canada |
posted 05-31-2002 00:06
Okay, the code that doesn't work looks like this: |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 05-31-2002 06:27
On the first look, the source code looks fine to me. So, if it doesn't replace <IMG> tags back to text, it means that text isn't really the same. I suggest you to print all those variables on screen (all $row[] variables and $story variable) and compare them manually to see where's the difference... |
Paranoid (IV) Inmate From: Harrow, Ontario, Canada |
posted 05-31-2002 07:11
I did. There's no difference. None whatsoever. |