Hi GWitek
You could do this using regular expressions, but I think it's too complex for a simple Like test.
However, I assume the objective is not just to validate the string, but also to extract the two times from it. Therefore, I suggest you use a function (attached) to parse the string and return the sleep and wake times.
Use it like this:
Dim tSleep as Date, tWake as Date
If ParseSleepWake( strString, tSleep, tWake ) Then
MsgBox "sleep at " & tSleep & ", wake at " & tWake
Else
MsgBox "invalid string"
End If
The function is thoroughly commented, so I hope you can follow how it works :-)
--
Graham