[Python-Dev] Re: re.split on empty patterns

Nick Coghlan ncoghlan at iinet.net.au
Wed Aug 11 07:46:25 CEST 2004


Mike Coleman wrote:
> The "empty okay" concept, on the other hand, seems to have to do specifically
> with how re.split uses the pattern.  That is, in the process of finding
> matches decides (or not) to discard the empty matches.

Hmm, to me, this suggests 'split_empty = False' as your new parameter
for re.split.

Cheers,
Nick.



-- 
Nick Coghlan               |  Eugene, Oregon
Email: ncoghlan at email.com  |             USA




More information about the Python-Dev mailing list

Follow Lee on X/Twitter - Father, Husband, Serial builder creating AI, crypto, games & web tools. We are friends :) AI Will Come To Life!

Check out: eBank.nz (Art Generator) | Netwrck.com (AI Tools) | Text-Generator.io (AI API) | BitBank.nz (Crypto AI) | ReadingTime (Kids Reading) | RewordGame | BigMultiplayerChess | WebFiddle | How.nz | Helix AI Assistant