How to cut a URL with regular expression

Posted by AhmadAssaf on Stack Overflow See other posts from Stack Overflow or by AhmadAssaf
Published on 2011-01-07T01:42:13Z Indexed on 2011/01/07 1:54 UTC
Read the original article Hit count: 571

Filed under:
|

Hello,

i am trying to chop a string that contains several information in java .. the text is something like that :

<a href="http://www.hootsuite.com" rel="nofollow">HootSuite</a>

i am thinking of using the .split method that need regular expression .. what i want it to split this string into the URL without quotes .. http://...... .com and then the text between the tags .. this case HootSuite ..

i will appreciate the help Thank you

© Stack Overflow or respective owner

Related posts about java

Related posts about split