Hey,

I'm just wondering how to use the preg_match function in php to meet the variables of the htaccess

strictly to the point, hope you understand my silly english

look in htaccess we use things like

Code:
RewriteRule ^([^/]+)/$ ./test.php?url=$1
what i'm looking for is what is the variable which we use in the preg_match function to meet the code
Code:
([^/]+)/
and how to add many variables like

Code:
RewriteRule ^([^/]+)/p([0-9]+).html$ ./test.php?url=$1&page=$2
what is the equivalent of these variables in the preg_match function ?

cuz i've seen alot of the examples like this one

PHP Code:
preg_match("/^([a-z0-9])(([-a-z0-9._])*([a-z0-9]))*\@([a-z0-9])(([a-z0-9-])*([a-z0-9]))+(\.([a-z0-9])([-a-z0-9_-])?([a-z0-9])+)+$/i"$string); 
but i didn't understand what's in it.