Re: OPINIONS WANTED: regexps in CSS?

 > > 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