This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 23rd, 2010  |  syntax: None  |  size: 0.22 KB  |  views: 81  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. ?>
clone this paste RAW Paste Data