I am confusing about how to make any regular expressions. e.g I have to make the regular expression of this type of string,
fetch/https://upload.wikimedia.org/wikipedia/w_100/commons/f/f9/Phoenicopterus_ruber_in_São_Paulo_Zoo.jpg fetch/https://upload.wikimedia.org/wikipedia/w_100,h_100,fl_progressive,dpr_2.0/commons/f/f9/Phoenicopterus_ruber_in_São_Paulo_Zoo.jpg
so I want to match only frm first string w_100 and from second string w_100,h_100,fl_progressive,dpr_2.0 likewise different urls.
var regex = /[a-z]_[0-9a-z]/g;
var found = string.match(regex);
it shows me output something like,
["w_1","s_r","r_i","n_s"]
I want something like this
["w_100","h_100","fl_progressive","dpr_2.0",]
can anyone suggest me a regular expression for this.?