Was just parsing urls of the type http://sitename.com/catid/300/, http://sitename.com/catid/341/ etc etc
wherein the parameter after the catid (300,341) are only integers. When I use the following condition in .htaccess, it works fine
RewriteRule ^(abc|def|hij|klm)/([0-9]+)/$ /index3.php?catid=$1&postid=$2 [L]
but when a php regex match function,like preg_match, it returns 1 for alphanumeric numbers too
eg: echo preg_match('([0-9]+)','a123'); or echo preg_match('([0-9]+)',a123);
They both return 1 ()true. I dont know why it matches alphanumerics. I want it to match only numbers.
What am I doing wrong?