Hi all.
I'n new in regexp and I wonder how can check is value valid.
valid value is 7-9 numbers long and in the beginning there can be #-character
So values: 4398733 and #384 are ok, but
values 3455 or #477938742983 aren't.
I have tried something like this, but this is not correct
I'n new in regexp and I wonder how can check is value valid.
valid value is 7-9 numbers long and in the beginning there can be #-character
So values: 4398733 and #384 are ok, but
values 3455 or #477938742983 aren't.
I have tried something like this, but this is not correct
Code:
val.match(/^\#\d{7-9}$/))