regex bug fix related to issue #24 matching group for element tag was misplaced when tag contains a non-word regex char