The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

BudFloyd (7) [Avatar] Offline
#1
I hate to nitpik but the regex in the script on page 145 will not match the corresponding example on page 144 because the beginning of the line on that diagram is the number 21 and not ^ 2.
tmaher (37) [Avatar] Offline
#2
Re: script on page 145 possible regex error
> I hate to nitpik

No need to apologize for that—we like nit-picking in this forum!

> but the regex in the script on page
> 145 will not match the corresponding example on page
> 144 because the beginning of the line on that diagram
> is the number 21 and not ^ 2.

If the 21 were actually in the file you'd be correct, but
it's not—it's just a line number added for reference
purposes. Maybe next time we could put such numbers
in a different font or shade of gray to avoid such misunderstandings.