From: pere.noel@... (=?ISO-8859-1?Q?Une_b=E9vue?=) Date: 2006-03-24T00:13:51+09:00 Subject: Re: perl regexp to ruby one conversion ? Ross Bamford wrote: > You'll need to switch those around, as I showed in my response to your > other thread. flag will then be true, but unfortunately I think too > often: > > utf8rgx === "onlyascii" > # => true > > I think to do that kind of test you'd have to remove the first line > (matching ASCII chars) and not anchor the regexp with ^ and $. > > Incidentally, I believe that the regexp above is best translated to Ruby > like this: > > utf8rgx = /^(.)*$/u > > You should also look into $KCODE (specifically $KCODE = 'u'). > > (Caveat to the above: I'm not much of an encoding expert at all). ok thanks for all, may be it could be better streaming out all of the html tags and bringing only part of what's in the ... -- une b�vue