<html> <SCRIPT LANGUAGE='JavaScript'> <!-- var sToMatch = "bread, bed bead sead sea"; var reBreadReadOrRed = /b{0,1}rea{0,1}d/; alert(reBreadReadOrRed.test(sToMatch)); //--> </SCRIPT> </html>