I want to get a list of strings matching the following pattern:
* represents any number of characters.
grep -o CLASS_NAME:\".*\" script.js
grep -o CLASS_NAME:\"*\" script.js
The first case returns the entire line after the matched string while the second case terminates at the first
". How can I get it to return just the matched string?