c# - Code to be working in code a and b -


this regex code v>fant <strong>(.+?) treff</strong> på ditt søk<

works code a

<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td><div id=\"boxhit\"><div> <div>fant <strong>12 treff</strong> på ditt søk</div></div></div></td></tr></table></div> 

but not code b

<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\"><tr><td><div id=\"boxhit\"><div> <div>fant <strong>1 162 treff</strong>, viser de 100 første</div></div></div></td></tr></table></div> 

i don't know part need add in order change in order regex code working code , b.

use http://regexstorm.net/tester in order test code.

you use v>fant <strong>(.+?) treff</strong>(.*?)< catch both texts.

because tested on på ditt søk, regex didn't match , viser de 100 første.


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

python 3.5 - Pyqtgraph string in x tick -