r/badcode • • Dec 28 '21

java 3AM code vs 10AM code

Post image
169 Upvotes

53 comments sorted by

View all comments

Show parent comment

3

u/[deleted] Dec 29 '21

regex

split on a regex matching any non-zero character.

hope that clears things up.