java - Regex for extract URL values -
java - Regex for extract URL values -
i have different list of urls, need find next url
<a class=\"subprocess\" href=\"/nikkshow/tlprocessview.do?id=5397458\"> view g </a>
5397458 - number can different.
view g - can view or b or c ...
after finding url, need extract value "view g" url. i'm new regex please help me solve
if backslashes in html code accident, regexp :
<a[^>]+href="([^>"]*)"[^>]*>([^<]*)<\/a>
example : http://regex101.com/r/xo1wg2/4
with backslashes :
<a[^>]+href=\\"([^>"]*)\\"[^>]*>([^<]*)<\/a>
example : http://regex101.com/r/xo1wg2/5
java regex parsing screen-scraping
Comments
Post a Comment