http://qs321.pair.com?node_id=1211982


in reply to Looking for a regular expression for the following pattern.

Well, if the three alternatives are a bit tricky to reconcile, why not simply use three regexes and perhaps an if statement?