I have a string of numbers that are a little weird. The source I’m pulling from has a non-standard formatting and I’m trying to switch from a .split where I need to specify an exact method to split on (2 spaces, 3 spaces, etc.) to a replaceall regex.
My data looks like this:
23574 123451 81239 1234 19274 4312457 1234719
I want to end up with
23574,xxxxx,xxxxx,xxxx
So I can just do a String.split on the ,
I will use
\sRegexThis is its usage on Java