Skip to content

Instantly share code, notes, and snippets.

@QuestionDevelopment
Created August 23, 2013 20:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save QuestionDevelopment/6323484 to your computer and use it in GitHub Desktop.
Save QuestionDevelopment/6323484 to your computer and use it in GitHub Desktop.
preg_match("/^(.+)\.(.+)$/", $file_name, $m);
$file_prefix = $m[1];
$file_suffix = $m[2];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment