Skip to content

Instantly share code, notes, and snippets.

@edobashira
Created February 25, 2011 04:54
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 edobashira/843375 to your computer and use it in GitHub Desktop.
Save edobashira/843375 to your computer and use it in GitHub Desktop.
String extension methods - split on whitespace
public static class StringEx
{
public static String[] SplitOnWhiteSpace(this String s)
{
return s.Split(new String[] { " ", "\t", "\f", "\n", "\r", "\v" },
StringSplitOptions.RemoveEmptyEntries);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment