Skip to content

Instantly share code, notes, and snippets.

@papr
Created February 18, 2011 22:08
Show Gist options
  • Save papr/834504 to your computer and use it in GitHub Desktop.
Save papr/834504 to your computer and use it in GitHub Desktop.
I got this kind of string
"101 Williges, Frank 102 Gimmler, Ursula 103 Meißner, Arno 104 Aufenanger, Michael 105 Kaiser-Wirz, Birgit 106 Becker, Friedhelm 107 Rüddenklau, Jutta 108 Mock, Andreas 118 Niemetz, Maria Luise 143 Rußhardt-Maurer, Iris"
and now I want to split it with a regular expression. One important point: the numbers should stay and be associated with the following name.
It would be really great, if someone could create a regex for this case. :)
Thank you!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment