> > 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 PembertonReceived on Tuesday, 10 March 1998 10:26:04 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:54 GMT