get particular string using regex in java

Posted by hussain on Stack Overflow See other posts from Stack Overflow or by hussain
Published on 2010-04-01T05:17:38Z Indexed on 2010/04/01 5:23 UTC
Read the original article Hit count: 472

Filed under:
|

i want how to code for get only link from string using regex or anyothers.

here the following is java code:

String aas = "window.open("+"\""+"http://www.pageresource.com/jscript/jex5.htm"+"\""+")"+"\n"+"window.open("+"\""+"http://www.pageresource.com/jscript/jex5.htm"+"\""+")";

how to get the link http://www.example.com/jscript/jex5.htm

thanks and advance

© Stack Overflow or respective owner

Related posts about java

Related posts about regex