The latest URL regular expression
Copy Code code as follows:
(http://)? (\w+\.) (\w+\.) (\w+) (/\w+) * * * *? (. html)? | http://\w+\.\w+/\w+| ["" () () ★※@~#]|\s{2,}
The first part replaces the normal URL, the second part replaces the microblogging site, the third part replaces the commonly used symbol, the part four replaces the more than 2 spaces with the empty
Sample text
Copy Code code as follows:
515. Choose the husband standard: Even if disfigured, also have the courage to lead me out, even if I have plastic surgery, also have the ability to find me back. -
516. Men always chase women to the side and then the women to dry. -
517. A man who is willing to give up smoking for a woman is a good man.
518. What is the teacher is to destroy your friendship destroy your love also destroys your mood rotten thing! -
519.-who is not a black eye, just wait for a "oh" character ﹌http://www.google.com/(HTTP://BIT.LY/ZNDRFN)
Www.baidu.com/aa/bb
www.baidu.com/aa/bb/cc/
Www.baidu.com/boy/s3s.htmlhttp://www.google.com/3dSd.html
Look at the example, you understand!