I\'m trying to match a block of div that have a particular id.. Here\'s my regex code:
]*\\s*id\\s*=\\s*[\"|\']content[\"|\']\\s*>[^/div]
The [^/div]+ will stop when it reaches any of those characters, which is not what you want. As it'll stop when it reaches too because of the i.
Unfortunately, you can't do what you want without knowing the internal structure of the HTML in the first place. Consider this:
Even if you could construct a regexp that would match up till the