Support » Plugin: Twitter Widget Pro » preg_repleace hashtags

  • permanyer


    in function

    public function linkHashtags( $text ) {
    		$text = preg_replace_callback('/(^|\s)(#[\w\x{00C0}-\x{00D6}\x{00D8}-\x{00F6}\x{00F8}-\x{00FF}]*)/i', array($this, '_linkHashtagsCallback'), $text);
    		return $text;

    regex does not support latin chars such as áàéèíïóòúüçñ and their uppercase.
    i don’t know any regex, so if anyone could help, would much appreciate!

  • The topic ‘preg_repleace hashtags’ is closed to new replies.