develooper Front page | perl.perl5.porters | Postings from August 2001

Feature! was: Bug or Feature: /\S$/ matches "\n"

From:
Dorner Thomas
Date:
August 28, 2001 06:31
Subject:
Feature! was: Bug or Feature: /\S$/ matches "\n"
Message ID:
6727B1DACFCDD311A757009027CA8D690257AA7B@Ex02.inhouse.start.de
OK,

thank you all, I missed that one.

Sorry for the inconveniance, Thomas
________________________________________
Thomas Dorner
START AMADEUS, Technologiestrategie (I-T)
Tel.: (0 6172) 91 - 26 41     Fax: - 55 26 41
E-Mail: Thomas.Dorner@start.de

> ----------
> Von: 	Robin Barker[SMTP:rmb1@cise.npl.co.uk]
> Gesendet: 	Dienstag, 28. August 2001 13:31
> An: 	Thomas.Dorner@start.de
> Cc: 	perl-mvs@perl.org; perl5-porters@perl.org
> Betreff: 	Re: Bug or Feature: /\S$/ matches "\n"
> 
> 
> > Sorry if this is an FAQ but I haven't found it in the perlre manpage.
> 
> [snip]
> 
> > It seems, that $ matches the end of the string *except* when the last
> > character is a newline, this seems to be ignored in that case. 
> 
> It is in perlre.pod (line 86):
> 
>          $   Match the end of the line (or before newline at the end)
> 
> Robin
> 
> -- 
> Robin Barker                        | Email: Robin.Barker@npl.co.uk
> CMSC, Building 10,                  | Phone: +44 (0) 20 8943 7090
> National Physical Laboratory,       | Fax:   +44 (0) 20 8977 7091
> Teddington, Middlesex, UK. TW11 OLW | WWW:   http://www.npl.co.uk
> 



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About