JSFiddle - React, Tailwind, and code Playground
JavaScript
var str = "I dont have any one";
var str1 = "We dont have any one";
var str2 = "I dont have any more";
var str3 = "I dont have any two";
var regx = /^I.*(one|two)/
console.log(str, ' => ', regx.test(str)) // True
console.log(str1, ' => ', regx.test(str1)) // False
console.log(str2, ' => ', regx.test(str2)) // False
console.log(str3, ' => ', regx.test(str3)) // True