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

6 lines
103 B
PHP
Raw Normal View History

2023-03-19 13:29:15 +00:00
<?php
function validateLuoguProblemId($str) {
2023-03-19 13:58:54 +00:00
return preg_match('/^(P|B)[1-9][0-9]{3,5}$/', $str);
2023-03-19 13:29:15 +00:00
}