0

I am currently having issue to find the regex expression for my case:

The word "Test" as is, or with hashtag symbol and 1 digit between 2-9
For example:

A. Test (valid)
B. Test#3(valid)
C. Test# (invalid)
D. Test#1(invalid because it should be 2-9)
E. Test#10(invalid up to digit 9)

What i've tried: \Test(#[2-9])?\, the issue with this expression is that it will accept cases C & E.
Thanks in advance for any given help.

Zvika Nadav
  • 103
  • 1
  • 8

0 Answers0