PHP regular expressions distinguish between two kinds of strings

/ 49265909/album/11501536/
/ album/11501536/
how to judge these two strings with regularity? How to distinguish between a number in front of it or a number without a number in front of it, and how to judge to realize the corresponding operation

Php
Mar.21,2022

preg_match("/\/\d+\/album\/\d+/","/49265909/album/11501536/")

clipboard.png

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-1b3af9a-2c272.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-1b3af9a-2c272.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?