I recently had test with regex, but I am not skilled in it. I try to write something for pattern:
- String must contains 6-16 chars
- String should be start only from char
- String could contain any char, but "-" only once
- String must not end with "-"
I wrote somethin like this "(^[a-zA-Z]).(/w{6,16}).*(?<!-)$"
, ofcourse it is not correct and not full.
I am very interesting in correct answear with explanaition, you could downvote my question if you think, it shoud be.