I am trying to split of letter and number boundaries, but the solution with lookarounds fails:
echo 50cats30dogs100squirrels | awk '{split($0,a,/(?<=\D)(.*)(?=\d)/); print a[1],a[2],a[3]}'
awk: illegal primary in regular expression (?<=\D)(.*)(?=\d) at <=\D)(.*)(?=\d)
source line number 1
context is
>>> {split($0,a,/(?<=\D)(.*)(?=\d)/) <<<
Is there a way to do this in Awk in other way?
Edit:
Sorry for not being clear. The expected output is to just add spaces like this:
50 cats 30 dogs 100 squirrels