Post Reply 
Using $NEST
Nov. 14, 2009, 09:32 PM (This post was last modified: Nov. 14, 2009 10:47 PM by JJoe.)
Post: #10
RE: Using $NEST
The ending needs to be unique to the beginning.

(Nov. 14, 2009 06:02 PM)PAEz Wrote:  Does Work
EDIT: $NEST(<div,*id=$AV(watch-promoted-videos-container)*,</div >)

This is trying to match nests of <div to </div >.
Each <div has a matching </div >.
No <div to </div > consumes a <div without a </div >.

(Nov. 14, 2009 06:02 PM)PAEz Wrote:  $NEST(<div\s[^>]++id="watch-promoted-videos-container"*,</div >)
$NEST(<div[^>]++id="watch-promoted-videos-container",</div >)

These are trying to match nests of
<div id="watch-promoted-videos-container" to </div >
There isn't a nest of these. There is only one.
It starts with
<div id="watch-promoted-videos-container"
and ends with the first </div > found,
<a href="/my_quicklist">Added to <br> Quicklist</a></div>

(Nov. 14, 2009 06:02 PM)PAEz Wrote:  $NEST(<div\s(*>)\#,*id="watch-promoted-videos-container"*,</div >)

Here the code to be matched by the inner match doesn't contain
id="watch-promoted-videos-container"


I'd use $INEST for things like this.


HTH

Edit:
Added explanation for $NEST(<div\s(*>)\#,*id="watch-promoted-videos-container"*,</div >)
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
Using $NEST - Quaraxkad - Jan. 03, 2009, 03:26 AM
RE: Using $NEST - Kye-U - Jan. 03, 2009, 07:36 AM
RE: Using $NEST - Quaraxkad - Jan. 03, 2009, 08:02 AM
RE: Using $NEST - Kye-U - Jan. 03, 2009, 08:04 AM
RE: Using $NEST - Quaraxkad - Jan. 03, 2009, 08:08 AM
RE: Using $NEST - Quaraxkad - Jan. 03, 2009, 11:11 AM
RE: Using $NEST - sidki3003 - Jan. 03, 2009, 12:46 PM
RE: Using $NEST - lnminente - Jan. 03, 2009, 03:40 PM
RE: Using $NEST - PAEz - Nov. 14, 2009, 06:02 PM
RE: Using $NEST - JJoe - Nov. 14, 2009 09:32 PM
RE: Using $NEST - PAEz - Nov. 15, 2009, 07:16 AM
RE: Using $NEST - JJoe - Nov. 15, 2009, 03:46 PM

Forum Jump: