Hi,

If you read the content of the section a

var text ... should contain the text of the section.
In your case the else path would be of interest.

The following should be sensitive for
*list and
#list

match = text.match(/^[*|#]/im);
if (match != null) {
        // matched text: match[0]
        // match start: match.index
        // capturing group n: match[n]
} else {
        // Match attempt failed
}

How regexp works can be found at:
http://www.regular-expressions.info/reference.html

hope this helps
have fun
Mario

On Apr 29, 5:35 am, Mike <[email protected]> wrote:
> I would like to have a script that can identify if any *list (<li>)
> elements are present in a section, if not return *No Items, if so
> return nothing. . .
>
> !!!Section1
> *list
> *list
> !!!Section1
> *No Items
> @@display:none
> !!!End
> @@
> I am having a hard time figuring out how to identify if any *list
> (<li>) items are present between sections
>
> Thoughts or Guidance?
>
> Mike
>
> --
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group 
> athttp://groups.google.com/group/tiddlywiki?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to