--- In [email protected], "quantiworks" <quanticwo...@...> wrote:
>
> "Sheri" wrote:
> 
> > Do you mean regex matching of caption lists? If so, is documented under 
> > Caption Lists in the main help and in the regex help on the summary page 
> > called Original Functions using Posix Interface.
> 
> Yes. I was referring caption lists.
> The one in Caption Lists, I had already read but there's so little,
> that I thought more info would be available.
> As for the regex help topic, you pointed, I was counting with some
> examples but anyway, at least there's more details.
> 
> Thanks.
>

Here is an example using "r=regex" caption list:

for each word handle in window("anywindow", "r=^.*?-.*$")
  win.debug(win.caption(handle))
endfor

There is also "=(expression)" for making your own caption list matcher. The 
pattern in the "r=" above needs to match the entire caption. The expression 
matcher below matches the same windows but the pattern need not match the 
entire caption (it just matches "-" anywhere in the caption).

for each word handle in window("anywindow", 
?Z=(regex.pcrematch(?"-",win.caption(x0))>0)Z)
  win.debug(win.caption(handle))
endfor

Regards,
Sheri

Reply via email to