3 edited tags
| link
2 added 62 characters in body; edited tags
source | link

I have this line

word1 word2 1234 4567 word3 8901 word4 word5 2541 5142 word5

I want to split this line in order to insert a line break before a numeric field or before an alphanumeric field that is just after a numeric field, so the output would be:

word1 word2
1234
4567
word3
8901
word4 word5
2541 
5142 
word5

All alphanumeric fields begin with letters

I have this line

word1 word2 1234 4567 word3 8901 word4 word5 2541 5142 word5

I want to split this line in order to insert a line break before a numeric field or before an alphanumeric field that is just after a numeric field, so the output would be:

word1 word2
1234
4567
word5

All alphanumeric fields begin with letters

I have this line

word1 word2 1234 4567 word3 8901 word4 word5 2541 5142 word5

I want to split this line in order to insert a line break before a numeric field or before an alphanumeric field that is just after a numeric field, so the output would be:

word1 word2
1234
4567
word3
8901
word4 word5
2541 
5142 
word5

All alphanumeric fields begin with letters

1
source | link

Insert a line break before a numeric field or before an alphanumeric field that is just after a numeric field

I have this line

word1 word2 1234 4567 word3 8901 word4 word5 2541 5142 word5

I want to split this line in order to insert a line break before a numeric field or before an alphanumeric field that is just after a numeric field, so the output would be:

word1 word2
1234
4567
word5

All alphanumeric fields begin with letters