4
I am working with some regular expressions and I came across the following case:
string pattern = @"^.{2,9}[-].{4}[-].{4}$";
string pattern = @"^.{2,9}-.{4}-.{4}$";
I would like to understand, what is the difference between using hifén [-]
or only -
?