Im trying to match the following format: < any number of a-z A-Z characters >
Using "^<\w*>$";
The code is:
var predefinedListRegEx = "^<\w*>$";
var dataFill = "<aaaa>";
var predefined_List = dataFill.match(predefinedListRegEx);
if (predefined_List != null) {
//MATCHES THE CONDITION
}
Cant seem to get it to work.. Where am i going wrong?
Also once i get the matched string i woud like to subtract whats been the <> out And use it to reference a varible.
var vacba = 0
e.g
And then to vacba = 10;