lundi 28 novembre 2016

Check if string contains more than one word reg exp javascript

i have a simple issue that i want to sort out. So basically i have a picture string that goes like this '10_aut_linen_male_less_student_work_yellow_n_cold.png' where

male = gender; n = weather ; cold = temperature.

Now i have those variables stored in a var. How do i check if ALL of those 3 variables are in the picture string?

Aucun commentaire:

Enregistrer un commentaire