in reply to Re: Simple Text Manipulation
in thread Simple Text Manipulation

This is the response I get:

Missing braces on \N{} at article.pl line 2, within pattern Nested quantifiers in regex; marked by <-- HERE in m/^(Article\s+0-9+\s+* <-- HERE \S)/ at article.pl line 2.

Replies are listed 'Best First'.
Re^3: Simple Text Manipulation
by AnomalousMonk (Archbishop) on Feb 06, 2011 at 02:53 UTC

    What the JavaFan means is that  \N (without curly braces) in Perl 5.12+ is an experimental backslash sequence that will match any character but a newline. The negated character class  [^\n] will do the same for pre-5.12 Perl (but I haven't tested JavaFan's actual regex). (See Backslashed sequences (5.12.0), fourth paragraph in the Whitespace subsection, for discussion.)

A reply falls below the community's threshold of quality. You may see it by logging in.