4
Answers

Help decoding a regular expression

Photo of Bill

Bill

16y
4.2k
1

I am supporting a new application and I do not use regex very often and was hoping someone could decode the following as well as let me know if a string containing a period would pass.
Regex
r = new Regex("^\\s*[a-zA-Z,\\s]+\\s*$");

Answers (4)