I'm trying to scrape usernames off of youtube , add them to a list , and save their name as a .html file. Now the problem is , sometimes people have lots of spaces in their names , which messes up the html file.. Is there a way to scrape their names using regex and replace the spaces with a special character , such as a dash?? Eg. - Any help is appreciated