2013-08-12 09:49:28 +02:00
|
|
|
<?php #
|
2011-12-13 12:29:05 +01:00
|
|
|
// 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>')
|
|
|
|
);
|