![]() |
preg_match problem.
PHP Code:
Quote:
anyone know whats wrong? |
The regex pattern contains the string
</span>. Since your delimiter is the forward slash, the pattern parser tries to stop read a pattern at the second forward slash which in this case is actually part of the closing span tag and not really the end of your pattern! Since the parser thinks the pattern has ended at that forward slash, it starts looking for modifiers. s is a valid one (which is why no error is raised there) but p isn't.Solutions: 1. Use a different delimiter which won't be used in your pattern (popularly tilde ~mypattern~modifiers).2. Escape the delimiter in your pattern: </span> becomes <\/span> |
thank you sir!
|
Also, it's not really related to the question but you can get the follower information through Twitter's API: http://twitter.com/users/show/paulor.xml
|
| All times are GMT. The time now is 07:48 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0