Regex to find URLs not in tags?

It would be simpler if you allowed a non-href url to be the text of an a element. As you require, you need to avoid any child nodes of the a elements, in case you have an url like text in a span or strong or whatever child of an a.

It would be simpler if you allowed a non-href url to be the text of an a element. As you require, you need to avoid any child nodes of the a elements, in case you have an url like text in a span or strong or whatever child of an a. Function someurls(node){ var A= , tem, rx=/^https?

\:\/\/^\s+/g; if(node){ node= node. FirstChild; while(node && node. TagName== 'A') node= node.

NextSibling; while(node! = null){ if(node. NodeType== 3){ if((tem= node.data.

Match(rx))! = null) AA. Length= tem; } else A= A.

Concat(someurls(node)); node= node. NextSibling; while(node && node. TagName== 'A') node= node.

NextSibling; } } return A; } // alert(someurls(document. Body). Join('\n').

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions