Get link from anchor tag using Java -


i'm trying value of href attribute anchor tag (a tag) using java, without third party api. know class of label. website looks this:

<html>   <body>     <div id="uix_wrapper">       <div id="button">           <label class="downloadbutton">             <a href="link want get">button</a>           </label>       </div>     </div>   </body> </html> 

you can use regular expression if try avoid using third-party libraries. basic expression example is

<a href="(.*?)"> 

and should work. can try out using https://www.debuggex.com/

the result in second group.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -