I want to write a function that tells if a character belongs to regular expression or not.
Following is my regular expression var re=/^[A-Za-z0-9]+$/;
Now if I have a character from string then i want to check whether that character belongs to regular expression or not.
Use the isMatch function.