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)?
Perl pattern matching circumflex and dollar?
Moderators: DataMystic Support, Moderators, DataMystic Support, Moderators, DataMystic Support, Moderators
-
- Posts: 988
- Joined: Sun Dec 09, 2007 2:49 am
- Location: UK
- 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?
This will be fixed in 9.2.
-
- Posts: 988
- Joined: Sun Dec 09, 2007 2:49 am
- Location: UK
Re: Perl pattern matching circumflex and dollar?
If the same bug affects input files with Mac style EOLs (CR), I'll assume you'll attend to that too?
David
David
David
- 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?
I don't believe it affects Mac EOLs.
-
- Posts: 988
- Joined: Sun Dec 09, 2007 2:49 am
- Location: UK
Re: Perl pattern matching circumflex and dollar?
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
I'm quite amazed that no-one had reported this hitherto!
David
David
- 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?
It seems to have been reintroduced a year or so ago, with an update to the PCRE engine.