Perl pattern matching circumflex and dollar?

Get help with installation and running here.

Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators

Post Reply
dfhtextpipe
Posts: 988
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Perl pattern matching circumflex and dollar?

Post by dfhtextpipe »

Is there a reason why Perl pattern matching circumflex and dollar
(to assert start of line and end of line respectively)
does NOT match when the EOLs are Unix (LF) style rather than DOS/PC (CR LF)?
David
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Perl pattern matching circumflex and dollar?

Post by DataMystic Support »

This will be fixed in 9.2.
dfhtextpipe
Posts: 988
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Re: Perl pattern matching circumflex and dollar?

Post by dfhtextpipe »

If the same bug affects input files with Mac style EOLs (CR), I'll assume you'll attend to that too?

David
David
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Perl pattern matching circumflex and dollar?

Post by DataMystic Support »

I don't believe it affects Mac EOLs.
dfhtextpipe
Posts: 988
Joined: Sun Dec 09, 2007 2:49 am
Location: UK

Re: Perl pattern matching circumflex and dollar?

Post by dfhtextpipe »

As it affects input files with Unix style EOLs, this must have been a very old software bug!

I'm quite amazed that no-one had reported this hitherto!

David
David
User avatar
DataMystic Support
Site Admin
Posts: 2227
Joined: Mon Jun 30, 2003 12:32 pm
Location: Melbourne, Australia
Contact:

Re: Perl pattern matching circumflex and dollar?

Post by DataMystic Support »

It seems to have been reintroduced a year or so ago, with an update to the PCRE engine.
Post Reply