![]() Topic awaiting preservation: Strange Regular Expression Error (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Harrow, Ontario, Canada |
![]() 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 |
![]() |
Paranoid (IV) Inmate From: Harrow, Ontario, Canada |
![]() That worked perfectly! Thanks. |
Paranoid (IV) Inmate From: Harrow, Ontario, Canada |
![]() 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 |
![]() |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() |
Paranoid (IV) Inmate From: Harrow, Ontario, Canada |
![]() Okay, the code that doesn't work looks like this: |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() 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 |
![]() I did. There's no difference. None whatsoever. |