Regex works on both ends of the table