Could you tell me how to write such a rule?

question background

want to do a background management system, to do login interception

regular requirements

match / admin/* in addition to / admin/login, / admin/login/, / admin/register, / admin/register/, but similar to / admin/logina / admin/loginb, how to write the rule? Thank you first! ~

Mar.26,2021

var rg = /\/admin\/(?!login\/?$|register\/?$)/
rg.test('/admin/login/s'); //true
rg.test('/admin/login'); //false
rg.test('/admin/login/'); //false
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3b2e2-2c267.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3b2e2-2c267.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?