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)";
>
>
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:
> @
@ 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
___
$("[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
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),