I need to find all the words in a string array which start with m but not have m in the middle?
var arr = "Hello my mother! how is Ramy?";
I tried that:
var ragexp = new RegExp("sm[a-z]*|^m[a-z]*", "g");
var test = regexp.test(arr); // test should be true if anything matched
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…