Regular expression to duplicate the CSV file

After reading the CSV file and finding the string in the web page, how to repeat it through the regular expression?