Regular expression implementation.

Does not support [\w\D] type character ranges yet.
Has bugs in lookahead captures.