Annotated Ryan's regular expressions.