ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl5-porters
perl5-porters
Re: [perl #34287] perlfaq6: /m matching beyond the first newline
by Ronald J Kimball other posts by this author
Feb 28 2005 3:11PM messages near this date
Re: [perl #34287] perlfaq6: /m matching beyond the first newline | Re: bignum pragma
On Mon, Feb 28, 2005 at 08:12:20PM -0000, Dan Jacobson wrote:
>  # New Ticket Created by  Dan Jacobson 
>  # Please include the string:  [perl #34287]
>  # in the subject line of all future correspondence about this issue. 
>  # <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=34287 >
>  
>  
>  perlfaq6.pod: "/m" allows caret and dollar to match next to a newline,
>          not just at the end of the string.
>  
>  Add: "You'll still need /mg if you want to match beyond the first
>  newline."!

I'm not quite sure what that sentence means, but I don't think it's
accurate.  For example, I could match beyond the first newline by doing
this C</^(.+)$/ms>  or this C</(?:^.+\n)+/m>.

Ronald
Thread:
Dan Jacobson
Yitzchak Scott-Thoennes
Ronald J Kimball

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved