On Dec 15, Michael R. Wolf said:

>Jeff 'japhy' Pinyan <[EMAIL PROTECTED]> writes:
>
>> Do you know that the "printable" range of characters is
>> from 32 to 126?
>
>Does Perl bring somethin similar through?  Perhaps the
>/[[space]]/ POSIX(?) character classes?  (I'm sure I've got
>the syntax wrong.)  There's no reason to hard-code 32..126
>into zentara's printing program.  Especially if it's to work
>in different locales.

Check the perlre documentation.  Perl 5.6 (at the very least) provides
[:alpha:] and whatnot, the POSIX character classes.

Note: they are used INSIDE a character class:  /[[:digit:]]/.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
RPI Acacia brother #734   http://www.perlmonks.org/   http://www.cpan.org/
** Look for "Regular Expressions in Perl" published by Manning, in 2002 **
<stu> what does y/// stand for?  <tenderpuss> why, yansliterate of course.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to