additional_plugins/serendipity_event_regexpmarkup/regexps/Twitter.php

9 lines
307 B
PHP
Raw Normal View History

2011-12-13 12:29:05 +01:00
<?php # $Id: Twitter.php,v 1.2 2009/12/17 16:22:36 garvinhicking Exp $
// Twitter preg replace markup
// turns usernames like @user to twitter-links
//
$regexpArray = array(
'SearchArray' => array("/[^\w]@([\w]+)/i"),
'ReplaceArray'=> array('<a href="http://www.twitter.com/\1">\1</a>')
);