Theiling Online    Sitemap    Conlang Mailing List HQ    Attic   

Re: TECH: A Perl quickie

From:Mark J. Reed <markjreed@...>
Date:Tuesday, January 27, 2009, 15:56
Yup.   All of the special character class representations (\s, \d,
\p{}...) also work within a [...] character class:

$ perl -le 'print "a" =~ /[\p{IsAlpha}]/'
1

$ perl -le 'print "1" =~ /[\p{IsAlpha}]/'

On Tue, Jan 27, 2009 at 9:48 AM, Benct Philip Jonsson <bpj@...> wrote:
> A Perl quickie: are \p{} expressions > supposed to work in character classes? > > /BP >
-- Mark J. Reed <markjreed@...>

Reply

Larry Sulky <larrysulky@...>