How to replace space in a string with \n

Chris Angelico rosuav at gmail.com
Thu Jan 31 06:09:40 EST 2019


On Thu, Jan 31, 2019 at 9:56 PM ^Bart <gabriele1NOSPAM at hotmail.com> wrote:
>
> >    You coulde use »sub« from the module »re«, then.
> >    (The Python Library Reference, Release 3.8.0a0 -
> >    6.2 re - Regular expression operations)
>
> We're using 3.7.2 :\
>

Don't worry about that difference - 3.8 is only minorly different from 3.7.

ChrisA



More information about the Python-list mailing list