peasepud 59 Posted November 12, 2011 Share Posted November 12, 2011 Seeing as our own resident Northern Ireland residing expert cant be arsed to help me because of some self centred need to gain promotion I need help from anyone that understands these. Ive tried many a time and frankly havent got a bastard clue! I know it can be done and is fairly straight forward. I want a regex that will add a bit to the start of any link in the document ie <a href="http://www.bbc.co.uk">'>http://www.bbc.co.uk"> I want to change to <a href="http://www.toontastic.net/result.php?theurl=http://wwww.bbc.co.uk"> at the same time there could be other bits in the link eg <a href="http://www.bbc.co.uk" title="BBC" /> or the http may be missing <a href="www.bbc.co.uk"/> or any one of a dozen other valid link setups. therefore I need to find any <a tags and add in a bit between the speech mark and the next char regardless of whats shown etc Anyone? Link to comment Share on other sites More sharing options...
Howmanheyman 33802 Posted November 12, 2011 Share Posted November 12, 2011 I seriously worry about people who actually understand that post. Link to comment Share on other sites More sharing options...
south_cheshire_toon 0 Posted November 14, 2011 Share Posted November 14, 2011 I know it's not an answer - but a quick goole search gave me the following :- http://www.regular-expressions.info/examples.html http://www.pagecolumn.com/tool/all_about_html_tags.htm And each page look like it has good onward links that might help. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now