|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
blinks Smarty Rookie
Joined: 30 Jun 2011 Posts: 6
|
Posted: Mon Aug 15, 2016 4:14 am Post subject: Remove URLs with regex_replace |
|
|
I'm looking to replace HTML code like this:
<a rel="license" href="http://creativecommons.org/publicdomain/mark/1.0/"><img src="http://i.creativecommons.org/p/mark/1.0/88x31.png" style="border-style: none;" alt="Public Domain Mark" /></a><br />This work is free of known copyright restrictions.
with just the href URL, viz:
http://creativecommons.org/publicdomain/mark/1.0
The actual URLs in the sample HTML will vary slightly.
Can anyone help? Thanks so much. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|