Embed Url at Textarea Script

Embed Url at Textarea Script is used to when you can keep URL at text area that url active with underline .Normally when put url at textarea not active that.

Demo :



Text  

Example :

There are innumerable ways in which metacharacters can be combined to create powerful pattern-matching rules. For an in-depth introduction, take a look at http://www.melonfire.com/community/columns/trog/article.php?id=2 and the PHP manual pages at http://www.php.net/manual/en/ref.regex.php. You can also find sample regular expressions at http://www.regexlib.com/.

In the above paragraph copy and put at textarea and then click active button now will be displayed with link and if you click link that will go to appropriate web page.


function activateUrls($text)
{
  return eregi_replace("([[:alnum:]]+://[^[:space:]]*[[:alnum:]#?/&= +%_:]]*)", "\\1", $text);
}
  print activateUrls("There are innumerable ways in which metacharacters can be combined to create powerful pattern-matching rules. For an in-depth introduction, take a look at http://www.melonfire.com/community/columns/trog/article.php?id=2 and the PHP manual pages at http://www.php.net/manual/en/ref.regex.php.You can also find sample regular expressions at http://www.regexlib.com/");

In the above activateUrls() function is used to link to urls and after print function to put content at center part.

Free Download Script :

If you need to Embed Url at Textarea Script click and download from following link.

Download




Content