use regex instead of jquery to parse html