regular expression problem

Thomas Jollans tjol at tjol.eu
Sun Oct 28 19:19:00 EDT 2018


On 28/10/2018 22:04, Karsten Hilbert wrote:
> - options needs to be able to contain nearly anything, except '::'
> 
> Is that sufficiently defined and helpful to design the regular expression ?

so options isn't '.*', but more like '(:?[^:]+)*' (Figuring out what
additional restriction this imposes is left an an exercise for the reader)



More information about the Python-list mailing list