|Keep It Simple, Stupid|
regex incorrectly matching newlineby bfdi533 (Pilgrim)
|on Jun 23, 2006 at 18:25 UTC||Need Help??|
bfdi533 has asked for the
wisdom of the Perl Monks concerning the following question:
I have the following bit of code:
When I run it through a loop processing a string like "hello\nthere" it prints the following:
as I would except.
I thought that the regex -~ would result in the range of ASCII characters from a space (ascii 32) through the tilde (ascii 126). A newline is ascii 10 so I thought I should get a "." for the newline.
Anyone have any thoughts on this?