Re: Set::matches and regexp question

2008-05-25 Thread Dardo Sordi Bogado
Just another guess: '/Comment[text=*]' , where * is a regexp ( i.e. /[a-z]{4}/i ) so putting it together: '/Comment[text=/[a-z]{4}/i]' On Sun, May 25, 2008 at 4:25 AM, ianh <[EMAIL PROTECTED]> wrote: > > Thanks for the suggestion, I didnt know that about XPath. Doubling the > braces didn't wo

Re: Set::matches and regexp question

2008-05-25 Thread ianh
Thanks for the suggestion, I didnt know that about XPath. Doubling the braces didn't work for me Im afraid. On May 25, 4:16 am, "b logica" <[EMAIL PROTECTED]> wrote: > Just a guess: Set uses XPath expressions, which require doubling the > braces: {{4}} > > On Sat, May 24, 2008 at 4:50 PM, ianh <[

Re: Set::matches and regexp question

2008-05-24 Thread b logica
Just a guess: Set uses XPath expressions, which require doubling the braces: {{4}} On Sat, May 24, 2008 at 4:50 PM, ianh <[EMAIL PROTECTED]> wrote: > > I came across the new Set::matches method. Its just genius so kudos to > whoever came up with that. Obviously there aren't many examples around >

Set::matches and regexp question

2008-05-24 Thread ianh
I came across the new Set::matches method. Its just genius so kudos to whoever came up with that. Obviously there aren't many examples around - mostly in the Containable test so Im a bit stuck on just how good it can be. One of the examples shows that Set::matches('/Comment[text=/cakephp/ i', $da