Guest User

Untitled

a guest
Oct 23rd, 2010
103
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. $threadurl = 'http://forums.rockbox.org/index.php?topic=26079.new';
  4. preg_match('/.*topic=([0-9]*).*"/',
  5. $threadurl, $matches, PREG_OFFSET_CAPTURE);
  6. print_r($matches);
  7.  
  8. ?>
RAW Paste Data