Good morning, I wrote the following regular expression:
/s\B\d{2,4}-c|w\B\d{2,4}-h\B\d{2,4}-c|w\B\d{2,4}-h\B\d{2,4}|w\B\d{2,4}|h\B\d{2,4}|w\B\d{2,4}-c|h\B\d{2,4}-c/
That serves to select all possible situations
/s1600/
/s1600-c/
/w80-h50/
/w300-h480-c/
/w80/
/w80-c/
/h50/
/h50-c/
But I consider it to be very long and rough, how could I do better? The code I am writing is used to select the parameters of the images hosted in Blogger.