Extract the given text files (Resumes) and transform the data to the XML and JSON format using regex in python.