求一个正则表达式,用来替换字符串
$str = 'SELECT userid, username FROM t WHERE user_lock=1';
将SELECT和FROM之间的部分替换成COUNT(*)
$newstr = 'SELECT COUNT(*) FROM t WHERE user_lock=1';
SELECT和FROM可能是大写或小写
userid, username不固定也可能是其他的字符串
$str = 'SELECT id,other FROM t WHERE user_lock=1';
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…