Skip to content

Instantly share code, notes, and snippets.

@wulfgarpro
Created September 15, 2012 04:07
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 wulfgarpro/3726314 to your computer and use it in GitHub Desktop.
Save wulfgarpro/3726314 to your computer and use it in GitHub Desktop.
Split with limit
The string "boo:and:foo", for example, yields the following results with these parameters:
Regex Limit Result
o 5 { "b", "", ":and:f", "", "" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment