explain how the data is gathered from the regex