Boost logo

Boost :

From: Eric Niebler (eric_at_[hidden])
Date: 2005-09-19 11:06:27


Caleb Epstein wrote:
> On 9/16/05, Darren Cook <darren_at_[hidden]> wrote:
>
>>>>~_ln which matches any one character that is not a line separator.
>>
>>_ln sounds useful. Is that in perl/PCRE ?
>
> Its not in Perl 5.
>

It's inspired from Perl 6. See the table at the bottom of:
http://www.perl.com/pub/a/2002/06/04/apo5.html?page=7

Perl 5: \r?\n
Perl 6: \n
Meaning: asserts logical newline

Perl 5: [^\n]
Perl 6: \N
Meaning: not a logical newline

For Perl 6, \n really means \r?\n. I liked that idea, but it's not as
general as it could be. Also, it could be slow. So I broke it in two: _n
== literal newline and _ln == logical newline, where the line separators
are determined by the regex traits type.

-- 
Eric Niebler
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk