Regex to grab ID from a Twitter post https://github.com/jonnybarnes/posse/blob/master/src/Jonnybarnes/Posse/NotePrep.php code./** * Grab the status id from a twitter URL * */ public function replyTweetId($url) { $regex = '/https?:\/\/twitter.com\/[a-zA-Z_]{1,20}\/status\/([0-9]*)/'; preg_match($regex, $url, $match); $id = $match[1]; return $id; } code.. #indieweb - #programming - #regex