--
You received this message because you are subscribed to the Google Groups "140dev Twitter Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 140dev-twitter-fra...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Adam
Yes, you are right. The problem is because of REGEX meta characters in the collection_words. Your example with “/” works well J
However, in my case the problem is with the metacharacter “.” (full stop) I believe the solution is as you mentioned to dynamically escape all the regex metacharacters.
I have compiled this list of metacharacters for us to escape:
“ \ , ^ , $ , * , + , ? , { , } , [ , ] , | ”
I agree with you on the use of str_replace rather than for example preg_replace. str_replace seems to be faster for short words like these ones.
$word = str_replace('/','\/',$word);
$word = str_replace('^','\^',$word);
$word = str_replace('$','\$',$word); ….
what do you think ? Thank you! :)
Hi Adam,Thank you! Yes, this solves the problem. Now parse_tweets.php runs without complains :-)
--
You received this message because you are subscribed to the Google Groups "140dev Twitter Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to 140dev-twitter-fra...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.