I have a pattern which looks like this (I'm not the creator):
[a-z,A-z,0-9,\-,\+,\&,\/,\\\,\s]{1,127}
which i pass to Regex.IsMatch().
Is there a "better" way of writing the same expression? And by better I mean shorter.
And if I would like to add a special character like æ
, do I simply add \æ
?