I have a regex pattern
<?php
if(preg_match("/shop[0-9]/", '/shop43')){
echo "YES";
}
else
{
echo "NO";
}
?>
It is working, but when i write
if(preg_match("/shop[0-9]/", '/shop43d')){
echo "YES";
}
it is working too.The problem is that i need to have ony digits after word "shop",for example shop1,shop2,...,shop123 What I need to change in my pattern?) I would be very thankful if somebody could give me a link with some examples of my problem in regex.Thank you :)