I'm trying to execute a Regex text replace on all the React files of an application in VS Studio Code.
Inside my files I've nominated CSS classes using the standard:
<div className='random_class_name'></div>
Now I'm moving to CSS Modules so I need to replace the apostrophes on all div tags with a graph parenthesis plus a prepend variable to obtain:
<div className={styles.random_class_name}></div>
Searching around I can just find ideas on how to replace strings between the tags but I need to keep the class name. I've tried to use a positive lookbehind on className= and select the first two apostrophes after but it didn't work out.