How can I create regex rule for name in Track1, following these rules:
- Allowed Characters would be: ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789 .()-$
- Not Allowed Characters would be: ^!"&'*+,:;<=>@_[]#%?
- Required character - only must character / appear
- The max size is 26 characters , min size 2.
I tried:
\^[^\^!"&'*+,:;<=>@_\[\]\\#%?]{2,26}\^ Result FAIL: removing "/" will pass pattern
\^([-.()0-9a-zA-Z]*\/[-.()\w\s\/]*){1,26}\^ Result FAIL: more than 26 characters will pass pattern
^[-.()\w\s\/]{2,26}\^ Result FAIL: removing "/" will pass pattern
Sample of Name in Track1:
- ^
TEST/TEST
^- Should Pass - ^
TEST TEST
^- Should Fail - ^
TEST/TE/ST
^ - Should Fail - ^
TEST/TE+ST
^ - Should Fail
Thanks!