var reg = /^Chapter [1-9][0-9]{0,1}$/, str1 = 'Chapter 88', str2 = 'Chapter 88 is good'; document.write(reg.test(str1) + '<br>' + reg.test(str2));