restructure AbstractScanner
Initial version of the RegexScanner