Imporoved the regular expression used to match "Tab <tab index>". It now requires tab to be a word and allows for spaces, hyphens, and underscores as seperators.