Trying to Use filter with Regular Expression
I'm trying to use the filter method to filter out unwanted anchor elements that I'm trying to manipulate on a page. My selector looks like this:
jq('a${esc.h}id').filter(/\D{3}\d{3}\D{5}/).each(function()
{
........
});
I have tried to create a regular expression to use in the filter, but it must wrong because when I try and display the page without the filter and regular expression it works fine. But it doesn't work when I add them to the existing selector. The regular expression is supposed to filter out all anchors which have id attribute values which aren't of the format 3 alphabetic characters followed by three digits followed by five alphabetic characters. Can someone suggest a comprehensive site or some very detailed documentation on how to build regular expressions, or suggest a possible fix to the code above? Thanks for the help.