Regex lookahead example not as stated in Camel 4th
Dave Cross
dave at dave.org.uk
Wed Jun 19 15:16:05 BST 2013
Quoting gvim <gvimrc at gmail.com>:
> On 19/06/13 14:52, Abigail wrote:
>
>> That's not a lookahead assertion. This is:
>>
>> $ perl -wE 'say for "0123456789" =~ /(?=(\d{3}))/g'
>> 012
>> 123
>> 234
>> 345
>> 456
>> 567
>> 678
>> 789
>> $
>
> So there's a typo on p.248
Patches welcome - http://oreilly.com/catalog/errata.csp?isbn=9780596004927
Dave...
More information about the london.pm
mailing list