1
I have a code that checks phrases that the user types and was tried more without much success, make a code using Regexp check that the user typed a particular phrase without or with word variations.
Example: "I use Facebook" or "I use Google"
The two sentences are almost identical with only one word variation.
I wanted this code to check if the user typed this phrase with possible predetermined variations.
I don’t understand much about it, but I think it would be more or less like this:
"Eu uso o google".exec( /^Eu uso o [google, facebook]$/i );