sharingsunshine
asked on
What regex will remove duplicate rel="nofolow" tags?
I had this question after viewing Python error - Need Help.
I created this regex to remove the duplicate rel="nofollow" tags using grep in TextWrangler but I am not clear how to add this into the Python regex code.
replace with
I created this regex to remove the duplicate rel="nofollow" tags using grep in TextWrangler but I am not clear how to add this into the Python regex code.
rel="nofollow"(\s|\n|\n\r)rel="nofollow"
replace with
rel="nofollow"
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks for the help. On the other exceptions you pointed out I will just have to fix them as I find them.
Open in new window
Notice the 1="" and the imageanchor=" without the enclosing double quote.