Замена любых ссылок.http://softtime.ru/forumЗамена любых ссылок.http://softtime.ru/forum/read.php?id_forum=6&id_theme=68421#post400739Второе выражение поправьте следующим образом "?php $pattern = "|"a href=(+?)|is"; ?"Замена любых ссылок.Thu, 1 Oct 2009 15:20:39 +0300cheopsЗамена любых ссылок.http://softtime.ru/forum/read.php?id_forum=6&id_theme=68421#post400736Хм.. Рановато я обрадовался.. Попробуйте например сделать $string = file_get_contents("http://wab.ru"); Получается, что не все ссылки обрабатывает.. Cheops, выручайте..Замена любых ссылок.Thu, 1 Oct 2009 14:54:03 +0300icq677555Замена любых ссылок.http://softtime.ru/forum/read.php?id_forum=6&id_theme=68421#post400735Благодарю. То что надо! Единственное, добавил немного: $pattern = "|"a.*?href=(+?).*?"|is"; Замена любых ссылок.Thu, 1 Oct 2009 14:45:09 +0300icq677555Замена любых ссылок.http://softtime.ru/forum/read.php?id_forum=6&id_theme=68421#post400726Можно поступить как-то так "?php $my = 'http://test1.com/'; $string = "test text "a href='http://site.com/about.html'"about"/a" more text ". ""a href='http://test.com/test/news.html'"news"/a" more...Замена любых ссылок.Thu, 1 Oct 2009 12:57:06 +0300cheopsЗамена любых ссылок.http://softtime.ru/forum/read.php?id_forum=6&id_theme=68421#post400716допустим есть строка: "? $my = 'http://test1.com'; $string = "test text "a href='http://site.com/about.html'"about"/a" more text "a href='http://test.com/test/news.html'"news"/a" more more...Замена любых ссылок.Thu, 1 Oct 2009 09:28:59 +0300icq677555