[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Match newline character
From: |
Chet Ramey |
Subject: |
Re: Match newline character |
Date: |
Tue, 04 May 2010 21:24:05 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.7) Gecko/20100111 Lightning/1.0b1 Thunderbird/3.0.1 |
On 4/3/10 2:33 PM, pk wrote:
> Is the =~ operator supposed to recognize \n in patterns?
No. "\n" matching a newline is not part of regular expression syntax.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/