Skip to content

Instantly share code, notes, and snippets.

Created September 25, 2012 12:46
Show Gist options
  • Save anonymous/3781565 to your computer and use it in GitHub Desktop.
Save anonymous/3781565 to your computer and use it in GitHub Desktop.
regex
inputLine: append "bow wow wow yippee-o yippee-ay" dir1/dir2/file.txt
Pattern regex = Pattern.compile("/^(\w+)\s+"(.*?)"\s+([\w.]+)\s*$/i", Pattern.UNICODE_CHARACTER_CLASS);
String[] parameters = inputLine.split(regex);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment