[Wellington-pm] Larry on Regexes

Philip Abrahamson philip at mobilemaps.com
Wed Oct 13 23:09:49 CDT 2004


If you use the 's' flag following the pattern match it will let '.' 
match a newline - as well as everything else.

Philip Abrahamson

Dave Moskovitz wrote:
> That would have been in the days before Unicode!
> 
> On Wed, 13 Oct 2004 21:47, Grant McLean wrote:
> 
>>Because . doesn't match \n.  [\0-\377] is the most efficient way
>>to match everything currently.  Maybe \e should match everything.
>>And \E would of course match nothing.  :-)
>>            --Larry Wall in <9847 at jpl-devvax.JPL.NASA.GOV>
>>
> 


More information about the Wellington-pm mailing list