Thread
:
find and replace links in a large text file
View Single Post
06-23-2009, 06:35 PM
GrouchyAdmin
Now choke yourself!
Industry Role:
Join Date: Apr 2006
Posts: 12,085
wildcard to match any type of link? Sure!
Code:
/a[\s]+[^>]*?href[\s]?=[\s\"\']+(.*?)[\"\']+.*?>([^<]+|.*?)?<\/a>/i
Enjoy.
__________________
AIM: GrouchyGfy
GrouchyAdmin
View Public Profile
Visit GrouchyAdmin's homepage!
Find More Posts by GrouchyAdmin