From: Brian Palmer Date: 2006-08-05T06:48:56+09:00 Subject: Re: What's happening here? A strange regexp problem wth posix :alpha: character class On Aug 4, 2006, at 2:50 PM, William James wrote: > > It's not just Ruby that requires the extra brackets. > > echo BEGIN{print "123 f 987" ~ /[[:alpha:]]/} | gawk -f - > 1 > Yeah, I figured it was probably pretty standard, it really makes sense--otherwise, the regex parser wouldn't be able to tell if the programmer really just wants to match against the specific characters :, a, l, p, and h. -- Brian