Jun-06-2021, 10:59 AM
(This post was last modified: Jun-06-2021, 11:01 AM by Gribouillis.)
Tim Peters Wrote:Simple is better than complexRather than rewriting a 'better' re module, you could simply use two lines, the first regex could capture the whole substring
"22 1 333"
in a group, the second line would split this substring in a sequence of numbers. It is a very elegant solution to this problem.