|
Posted by Steve on 08/27/07 02:46
"Gregor Kofler" <usenet@gregorkofler.at> wrote in message
news:96556$46d1954d$557f14a8$2321@news.inode.at...
| Sιverin Richard meinte:
|
| > for single quote(') the right syntax may be:
| > ereg_replace( "'","\'",$someblog[0] )
| > or ereg_replace( "'","\\'",$someblog[0] )
| > or ereg_replace( "'","\\\'",$someblog[0] )
| >
| > try all of this.
|
| Now, that's what I call helpful...
man, there are a ton of prima donnas here! jesus christ!
| Anyway, since he's doing a lot of
| trying anyway, he should either stick to preg_replace()
i agree...it gives much better performance.
| if RegEx are
| required, since *this* is proper contemporary PHP.
"proper"?!!! wtf!
ummmm...ereg *IS* using regex. it's just a different processing engine.
"proper"...that's a laugh.
| However, in this case
| RegEx is complete overkill.
disagree completely.
| An ordinary str_replace() will do [1].
only if you're not used to writing regex. but to technically disagree, no,
str_replace won't easily take care of everything that should be checked.
Navigation:
[Reply to this message]
|