Cutting slices

Greg Ewing greg.ewing at canterbury.ac.nz
Sun Mar 5 21:18:29 EST 2023


On 6/03/23 11:43 am, Stefan Ram wrote:
>    A user tries to chop of sections from a string,
>    but does not use "split" because the separator might become
>    more complicated so that a regular expression will be required
>    to find it.

What's wrong with re.split() in that case?

-- 
Greg


More information about the Python-list mailing list