1
0
mirror of https://github.com/renbaoshuo/UOJ-Luogu-RemoteJudge.git synced 2024-12-12 11:26:27 +00:00
UOJ-Luogu-RemoteJudge/web/app/libs/uoj-validate-lib.php

6 lines
99 B
PHP

<?php
function validateLuoguProblemId($str) {
return preg_match('/^P[1-9][0-9]{3,5}$/', $str);
}