View Single Post
Old 11-10-2010, 02:29 AM   #77
bucsie
Connoisseur
bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.bucsie ought to be getting tired of karma fortunes by now.
 
Posts: 71
Karma: 674766
Join Date: Sep 2010
Device: Kindle
Hi

Could you please explain the regular expression used for detecting headers?

Quote:
(?i)(?<=<hr>)((\s*<a name=\d+></a>((<img.+?>)*<br>\s*)?\d+<br>\s*.*?\s*)|(\s*<a name=\d+></a>((<img.+?>)*<br>\s*)?.*?<br>\s*\d+))(?=<br>)
I am not a newbie with regex-es, but it's difficult to follow, and there are a couple of things I don't understand, like what is this for: (?<= or this one: (?=
bucsie is offline