Use WT_PAGE_IS_INTERNAL instead of testing explicitly.
whitespace
KNF
whitespace
whitespace
Don't re-compile the RE on every loop.