标签: php expression match
我有一个带有循环app:tabMode="fixed"的数组arr("PAPER","SHEET","SHEET1","SHEET2", "SHEET3")。我将跳过以“SHEET”开头并以数字foreach(key,value)
app:tabMode="fixed"
arr("PAPER","SHEET","SHEET1","SHEET2", "SHEET3")
foreach(key,value)
如何使用[0-9]或其他REGEX执行此操作?
[0-9]
preg_math
答案 0 :(得分:2)
类似的东西:
if (preg_match('/^SHEET\d+$/i', $value)) { continue; }