^[a-zA-Z]:{1}/(\w+/)+$
I want to allow . as well in the expression in \w+.  How can I do this?
^[a-zA-Z]:{1}/(\w+/)+$
I want to allow . as well in the expression in \w+.  How can I do this?
\. should do it.  You don't need the escaping \ if you put it in a character class.  For your exact example:
^[a-zA-Z]:{1}/([\w.]+/)+$
 
    
    The . is a special character in regular expression syntax, so you have to escape it with a backslash.  \.
 
    
    The expression should be ^[a-zA-Z]:/(\w+./)+$ or ^[a-zA-Z]:/([\w.]+/)+$
