Comparing a list of word against a line
JavaScript
2
Posts
2
Posters
0
Views
1
Watching
-
var classname= "active-k active-t active-o active-c active-v active-x"; var sometext="active-k active-k-background Kommentar"; now i want to match that is sometext contains any of the word in classname then it should return. what is the best way of matching any of the word in classname [active-k or active-t .....] against sometext
-
var classname= "active-k active-t active-o active-c active-v active-x"; var sometext="active-k active-k-background Kommentar"; now i want to match that is sometext contains any of the word in classname then it should return. what is the best way of matching any of the word in classname [active-k or active-t .....] against sometext