regular expressions for scanner construction 1310925