I would like to propose the following syntax for a regular expression
attribute filter:
[attribute?=value]
where value is a regular expression. So, for example
$('[value?=" *ab *"]')
would select all elements where value contains "ab" with any amount of
leading and trailing spaces. Of course the regular expression can be
as simple or as complex as required.
This can be accomplished by adding
type === "?=" ?
value.search(new RegExp(check)) >= 0 :
to the Sizzle CSS Selector Engine under Sizzle.selectors.filter.ATTR.
Does anyone have any thoughts on this?
Thanks,
Alistair
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"jQuery Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---