
Regular Expressions Newbie Question
Any one any ideas why
var SearchPattern = new RegExp("ID19[0-9]+");
will match "ID1923" in a string
but
var SearchPattern = new RegExp("ID19\d+");
won't
I though \d was same as [0-9]
Also how do you specify a match on "ABC.+{1}"
(ie. string starting with ABC and ending with )
If the string being searched is "some text ABC123more text" it works fine
but if its
"some text ABC123more text"
I get the more which I don't want
PaulW