[jQuery] Wild cards in id names, class names and element names
Hi,
Is it possible to use the same type of wildcards used in attributes,
on id names, classes names and element names. For example, one could
use the following to capture a range of attributes:
# E[@foo^=bar] an E element whose "foo" attribute value begins
exactly with the string "bar"
# E[@foo$=bar] an E element whose "foo" attribute value ends exactly
with the string "bar"
# E[@foo*=bar] an E element whose "foo" attribute value contains the
substring "bar"
I would like to write something like
$(/(id.*name)/) to be able to capture id_A_name, id_B_name and
id_C_name, or some other convenient form of using *, ^ and $.
Would regular expressions work as arguments to $() ? Is there any way
of doing this?
Pluthos