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

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -