Skip to content

Instantly share code, notes, and snippets.

@rainbow23
Created August 16, 2017 15:45
Show Gist options
  • Save rainbow23/c6d72cc018eb282a1b32d33019b5ed11 to your computer and use it in GitHub Desktop.
Save rainbow23/c6d72cc018eb282a1b32d33019b5ed11 to your computer and use it in GitHub Desktop.
正規表現
<?php
preg_match('/status:\d{3}/', 'status:288', $matches, PREG_OFFSET_CAPTURE);
print_r($matches);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment