"Sheri" wrote:

> 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
> 

Thanks for that Sheri. It surely helps to understand it.


Reply via email to