I’m learning regular expressions and want to help me to create a regular expression in JavaScript for the following situation:
1- I want detect when the user puts this in a textbox: “Please read out the results” or “can you please list the results?”
The regular expressions must detect [read out|list] (any word) results
How can create this regular expression in JavaScript?
Thanks in advance!!!!
This:
((read out)|(list))([a-zA-Z ])*(results)