Let's say I have this string:
const string1 = "Qualification Level"
..and I want to compare it to a few different strings that have 'roughly' the same value or at least contains some resemblance:
const string2 = "Qualification" // just one of the words
const string3 = "level" // just one of the words and lowercase
const string4 = "qualification level" // lowercase
What is the best algorithm/regex expression to use so that comparing string1
to any of the strings I mentioned will return true
?