I am trying to build a pattern to do the following: - Find all occurences of HREF=" and SRC=" except those that include the HTTP:// in their path - Insert my own domain string (e.g.: http://www.my_domain.com)
So has an example the input string would be : $val = '<A hrEf="http://www.test.com/test.php">ssdf</A><BR><A HrEf="hello.com">2</A><IMG src="test.jpg"><IMG src="http://www.test.com/images/dfgdf.jpg">'; And I would like to end up with: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php