On Thursday, September 11, 2003, at 09:46 AM, R. Joseph Newton wrote:

Dan Muey wrote:

SO my question is:

Which is faster/better/more portable/compliant etc....

[^[:ascii:] or [[:^ascii:]] ??

How about [^:ascii:]?

The part of the message you snipped in your quoting answers this. Here it is again, with John W. Krahn's comments:


perldoc perlre on 5.8.0 says that [:ascii:] should match any ascii
character and [:^ascii:] is the negate version.

If I do =~m/[:^ascii:]/ or [:ascii:] on astring that is 'hi' it

That character class matches the characters 'a', 'c', 'i', 's', ':' or '^' and 'hi' contains the character 'i' so it returns true.


returns true each way, so I believe it says the [] are part of
[::] conbstruct which I think means you have to have[[:class:]]

Yes.


James


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



Reply via email to