I have a strings that looks like this:
“wes-1 className Another”
“wes-2-bos className Another”
“wes-3 className Another”
“wes-5-bos className Another”
I need to return the ones that are wes-* and delete everything else.
Regex makes my head spin, any help?
using js. This is what I have so far..
str.match(/\b^wes/);
matches wes- and any number of word or – characters after it.