I'm trying to write a regex which
does not allows a number to come before or after a number like.
I have id
s like this
abcd-1
abcd-11
abcd-21
...
abcd-91
I can't figure out how to write a regex that
gives me the element that have only 1
I mean abcd-1
(having no digit before and after 1). I am doing something like this
$("[id$=1]")
which gives me all the the elements from abcd-1
to abcd-91
. I just neeed abcd-1
.
Can you please help?