Advertisement
Guest User

Untitled

a guest
Aug 27th, 2011
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.19 KB | None | 0 0
  1. <?php
  2. $url = "mydomain.tld/work/12/record/5435545";
  3. if(preg_match('/(?<![\d])([\d]|[\d]{8,9})(?![\d])/', $url, $found) > 0) {
  4.         echo $found[1];
  5. } else {
  6.         echo "not found";
  7. }
  8. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement