POSIX regex character classes on Windows Platform

I've been mucking about with regular expressions and have not managed
to get the POSIX style character classes (i.e., [:alnum:]) to work for
me. Is this a limitation of the platform I'm using, or am I missing
some setting somewhere?

Ruby 1.8.2 on WinXP (used the one-click installer).

-Kevin

Kevin wrote:

I've been mucking about with regular expressions and have not managed
to get the POSIX style character classes (i.e., [:alnum:]) to work for
me. Is this a limitation of the platform I'm using, or am I missing
some setting somewhere?

Ruby 1.8.2 on WinXP (used the one-click installer).

-Kevin

irb(main):010:0> p "@@@ abc".scan( /[[:alnum:]]+/ )
["abc"]

irb(main):001:0> p RUBY_PLATFORM, RUBY_VERSION
"i386-mswin32"
"1.8.2"

A missing set of brackets will get ya every time.

Thanks.

ยทยทยท

-----Original Message-----
From: William James [mailto:w_a_x_man@yahoo.com]
Sent: Wednesday, August 10, 2005 08:56 PM
To: ruby-talk ML
Subject: Re: POSIX regex character classes on Windows Platform

Kevin wrote:

I've been mucking about with regular expressions and have not managed
to get the POSIX style character classes (i.e., [:alnum:]) to work for
me. Is this a limitation of the platform I'm using, or am I missing
some setting somewhere?

Ruby 1.8.2 on WinXP (used the one-click installer).

-Kevin

irb(main):010:0> p "@@@ abc".scan( /[[:alnum:]]+/ )
["abc"]

irb(main):001:0> p RUBY_PLATFORM, RUBY_VERSION
"i386-mswin32"
"1.8.2"