[Tutor] regular expression matching a dot?

Christian Meesters meesters at uni-mainz.de
Wed Oct 19 14:25:25 CEST 2005


Thanks, corrected. I was happy now - and then too fast ;-).

Cheers
Christian
On 19 Oct 2005, at 13:50, Kent Johnson wrote:

> 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