Jump to content

turkuas

New Members
  • Posts

    2
  • Joined

  • Last visited

turkuas's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. i am using this expression instead of i mentioned above, but this one directly converts a text to url without syntax "$msg = preg_replace( "`((http)+(s)?:(//)|(www\.))((\w|\.|\-|_)+)(/)?(\S+)?`i", "<a target=_blank href=\"http\\3://\\5\\6\\8\\9\" title=\"\\0\">\\5\\6</a>", $msg);" and it doesnt adds my site's url. what is the difference?
  2. hi all, i am a newbie member of php world, i need to learn the answer of a simple question why "preg_replace('/\@!$@&()\'*+,;=%]+)"\](.+)\[\!url\]/', '<a href="$1">$2</a>', $string)" expression adds my own site address at the beginning of the link created? such as http://www.mysite.com/www.thesitepreg_replace_created.com
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.