Skip to content

Instantly share code, notes, and snippets.

@kdabir
Created March 12, 2012 13:22
Show Gist options
  • Save kdabir/2021877 to your computer and use it in GitHub Desktop.
Save kdabir/2021877 to your computer and use it in GitHub Desktop.
Extract tags from string
List<String> tags = Arrays.asList(INPUT_STRING.split(",( )*"));
// splits by comma followed by zero or more spaces
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment