小帮手
Regular expression to match non-negative integers in PHP?
I seem to get it to work with the following regexp by preg_match(): @^(?:[1-9][0-9]*)|0$@ Yet it\'s weird that it matches -0, considering there are no - allowed at all in the regexp. Why?[详细]
2022-12-27 02:57 分类:问答