W3C home > Mailing lists > Public > www-style@w3.org > March 1998

Re: OPINIONS WANTED: regexps in CSS?

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
Message-ID: <13573.23215.669486.385513@schoener.cwi.nl>
 > > 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:53:54 GMT