I have to clean several csv files before i put them in a database, some of the files have a unexpected linebreak in the middle of the line, as the line should always end with a number i managed to fix the files with this one liner:

```
perl -pe 's/[^0-9]\r?\n//g'

```

while it did work it also replaces the last char before the line break

```
foob
ar

```

turns into

```
fooar

```

Is there any one liner perl that i can call that would follow the same rule without replacing the last char before the linebreak