Hi im trying to get the word right before the coma in a sentence.
For example if the string is:
"Cloudy, and 51 ° F "
I want the output CLOUDY.
How is this done in regex and javascript? I know you have to use the .match command in javascript. Thanks, any help is appricated.