mirror of
https://github.com/renbaoshuo/UOJ-Luogu-RemoteJudge.git
synced 2024-11-27 20:56:38 +00:00
6 lines
103 B
PHP
6 lines
103 B
PHP
<?php
|
|
|
|
function validateLuoguProblemId($str) {
|
|
return preg_match('/^(P|B)[1-9][0-9]{3,5}$/', $str);
|
|
}
|