8009240: RegExpScanner code is inefficient and too complex

Reviewed-by: jlaskey, lagergren
3 files changed