Regular Expression Attribute Filter

Regular Expression Attribute Filter


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