Re: [jQuery] regexp selector

2006-08-11 Thread Aloyzas Rimeika
ups :) jQuery.parse[0] = [ "\\[ *(@)S *([\\/!*$^=]*) *Q\\]", 1 ]; On 8/11/06, Aloyzas Rimeika <[EMAIL PROTECTED]> wrote: > Add these lines in your javascript file: > jQuery.parse[0] = [ "\\[ *(@)S *([\\/!*$^=]*) *Q\\]", 1 ];"trace(m[4])"; > jQuery.expr['@']['/='] = "new RegExp(m[4]).test(z)"; > >

Re: [jQuery] regexp selector

2006-08-11 Thread Aloyzas Rimeika
Add these lines in your javascript file: jQuery.parse[0] = [ "\\[ *(@)S *([\\/!*$^=]*) *Q\\]", 1 ];"trace(m[4])"; jQuery.expr['@']['/='] = "new RegExp(m[4]).test(z)"; then you be able to do following: $("[EMAIL PROTECTED]/='\\.(jpg|gif)(\\?.*|$)']") On 8/11/06, Fil <[EMAIL PROTECTED]> wrote: > @

Re: [jQuery] regexp selector

2006-08-11 Thread Fil
@ Aloyzas Rimeika <[EMAIL PROTECTED]> : > $("[EMAIL PROTECTED], [EMAIL PROTECTED]") I know there are alternatives for most cases. However you can't beat the versatility of regular expressions. > > $("a[href REGEXP '\.(jpg|gif)(\?.*|$)']"); -- Fil ___

Re: [jQuery] regexp selector

2006-08-11 Thread Aloyzas Rimeika
$("[EMAIL PROTECTED], [EMAIL PROTECTED]") On 8/11/06, Fil <[EMAIL PROTECTED]> wrote: > Hello, > > I would like to be able to query with regular expressions, something like, > for example : > $("a[href REGEXP '\.(jpg|gif)(\?.*|$)']"); > > of course the syntax would not be "REGEXP", but you

[jQuery] regexp selector

2006-08-10 Thread Fil
Hello, I would like to be able to query with regular expressions, something like, for example : $("a[href REGEXP '\.(jpg|gif)(\?.*|$)']"); of course the syntax would not be "REGEXP", but you get the idea. Is this feasible currently? Judging by the code I've looked at (the public alpha),