Click here to get back home

regex for chars 192 to 255

 HomeNewsGroups | Search | About
 comp.lang.perl.misc    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
regex for chars 192 to 255 John 02-29-2008
Posted by John on February 29, 2008, 5:45 am
Please log in for more thread options
Hi

Is there a character class like [a-zA-Z] for accented characters that lie
between ASCII 192 and 255 (excluding 215 and 247)?

If not, what is the easiest way to match those, other that specifying them
indvidually?

Regards
John




Posted by Tad J McClellan on February 29, 2008, 6:49 am
Please log in for more thread options

> Is there a character class like [a-zA-Z] for accented characters that lie
> between ASCII 192 and 255 (excluding 215 and 247)?


ASCII defines characters from 0-127, so 192 and 255 are not in ASCII.


--
Tad McClellan
email: perl -le "print scalar reverse qq/moc.noitatibaher0cmdat/"

Posted by John on March 1, 2008, 4:45 am
Please log in for more thread options

>
>> Is there a character class like [a-zA-Z] for accented characters that lie
>> between ASCII 192 and 255 (excluding 215 and 247)?
>
>
> ASCII defines characters from 0-127, so 192 and 255 are not in ASCII.
>
>
> --
> Tad McClellan
> email: perl -le "print scalar reverse qq/moc.noitatibaher0cmdat/"

Thanks. I should have said extended ASCII
Regards
John



Posted by Jürgen Exner on March 1, 2008, 5:54 am
Please log in for more thread options
>>> Is there a character class like [a-zA-Z] for accented characters that lie
>>> between ASCII 192 and 255 (excluding 215 and 247)?
>>
>> ASCII defines characters from 0-127, so 192 and 255 are not in ASCII.
>
>Thanks. I should have said extended ASCII

Which is highly ambigious in itself because first of all it is used to
describe different things, e.g. characters that are not ASCII, latin
characters that are not ASCII, ASCII characters plus latin characters that
are not ASCII. And second it doesn't specify the encoding.

jue

Posted by RedGrittyBrick on March 3, 2008, 5:07 am
Please log in for more thread options
John wrote:
>>
>>> Is there a character class like [a-zA-Z] for accented characters that lie
>>> between ASCII 192 and 255 (excluding 215 and 247)?
>>
>> ASCII defines characters from 0-127, so 192 and 255 are not in ASCII.
>>
>>
>> --
>> Tad McClellan
>> email: perl -le "print scalar reverse qq/moc.noitatibaher0cmdat/"
>
> Thanks. I should have said extended ASCII

I'd rather you said "Code Page 1252", "Windows Latin-1", "ISO-8859-1" or
the name of some other specific character set/encoding. :-)


Similar ThreadsPosted
Regex for special chars.. April 18, 2006, 10:10 am
[regex] grep for chars in any order June 18, 2008, 3:06 am
Delete nonprinting chars September 6, 2004, 10:04 pm
Permuting using any number of given chars May 17, 2005, 10:51 pm
parsing UTF-8 chars out of POST data September 8, 2004, 11:00 am
Matching escaped delimiter chars November 28, 2005, 9:21 pm
Match a number of repeated chars, but NO MORE. December 2, 2005, 2:16 am
XML Javascript Special Chars encoding February 20, 2006, 8:52 am
Perl opting for double-byte chars? September 11, 2004, 6:38 pm
Re: Perl opting for double-byte chars? September 12, 2004, 4:00 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap