Bir dize adresler üzerinden bisiklet ve ona bir değer ekleme PHP regex

0 Cevap php

Örneğin ben şu dizesi vardır:

Welcome to my <a href="http://example.com">site</a>. Feel free to  <a href="http://localhost.com">contact me</a>.

Ne tekniği Ben sonuçlanan url'lerin hem sonunda '/ id/123' eklemek için bu dize değerlendirmek için kullanabilirsiniz:

Welcome to my <a href="http://example.com/id/123">site</a>. Feel free to  <a href="http://localhost.com/id/123">contact me</a>.

Teşekkürler.

0 Cevap