3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $body = 'List-Unsubscribe: <http://a.mydomain.com/u/1/100/23/f0fd224f822a5af1498fa326d201c8c4/>'; $getCampListEmailid =preg_match("/^List-Unsubscribe: <http:\/\/a.mydomain.com\/u\/([0-9]+)[\/]([0-9]+)[\/]([0-9]+)[\/][a-f0-9]{32}[\/>]/",$body,$match); var_dump($getCampListEmailid); var_dump($match[1]); var_dump($match[2]);
Output for 4.3.0 - 7.1.0
int(1) string(1) "1" string(3) "100"