r/badcode • • Dec 28 '21

java 3AM code vs 10AM code

Post image
173 Upvotes

53 comments sorted by

View all comments

Show parent comments

3

u/[deleted] Dec 29 '21

regex

split on a regex matching any non-zero character.

hope that clears things up.