[Tutor] regular expression matching a dot?

Kent Johnson kent37 at tds.net
Wed Oct 19 13:50:33 CEST 2005


Christian Meesters wrote:
> Actually, your answer did help to open my eyes. The expression is 
> "\d+S[S|E]\.INF": Ouch!

That will work, but what you really mean is one of these:
"\d+S[SE]\.INF"
"\d+S(S|E)\.INF"

Your regex will match 0S|.INF

Kent



More information about the Tutor mailing list