- From: Steven Pemberton <Steven.Pemberton@cwi.nl>
- Date: Tue, 10 Mar 1998 16:25:08 +0100 (MET)
- To: Carl Johan Berglund <carl.johan.berglund@adverb.se>
- Cc: Bert Bos <Bert.Bos@sophia.inria.fr>, www-style@w3.org
> > 2. please send me your attempt at writing a regexp that matches "fr", > > "fr-ca", "fr-fr", "fr-ca-quebec" (in both upper- and lowercase), > > etc, but not "franc" or "free" or "fr!" or "de-fr". > > What about: > > ^ *(fr|FR)(-[A-Za-z]+)* *$ <P lang="Fr-not">Wrong!.</P> This might do it better: ^[fF][rR][-A-Za-z]* Not that I'm supporting the use of REs for attribute matching. Steven Pemberton
Received on Tuesday, 10 March 1998 10:26:04 UTC