regexp.test(stringa)

Puoi provare anche as aggiungere $ all termine della regexpr