Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: seeking simple|clean|pythonic way to capture {1,} numeric clusters
Post: RE: seeking simple|clean|pythonic way to capture {...

Thanks, Gribouillis. At first glance that looks very elegant … But:The re.match that you provided catches the null case test_string = 'key_phrase []', that I did not want to catch? I was thinking mo...
NetPCDoc General Coding Help 6 3,135 Jun-10-2021, 05:14 PM
    Thread: seeking simple|clean|pythonic way to capture {1,} numeric clusters
Post: RE: seeking simple|clean|pythonic way to capture {...

(Jun-06-2021, 10:59 AM)Gribouillis Wrote: Rather 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 sec...
NetPCDoc General Coding Help 6 3,135 Jun-06-2021, 10:00 PM
    Thread: seeking simple|clean|pythonic way to capture {1,} numeric clusters
Post: RE: seeking simple|clean|pythonic way to capture {...

(Jun-06-2021, 05:55 AM)Gribouillis Wrote: I don't think you can capture a variable number of groups in the same match. Each captured group correspond to a single group in the regex. For example the ...
NetPCDoc General Coding Help 6 3,135 Jun-06-2021, 09:07 AM
    Thread: seeking simple|clean|pythonic way to capture {1,} numeric clusters
Post: seeking simple|clean|pythonic way to capture {1,} ...

seeking simple|clean|pythonic way (expression | pattern) to capture {1,} numeric clusters (i.e. "\d+") … … associated with a single "key_phrase"? (I am having great difficulty with finding proper se...
NetPCDoc General Coding Help 6 3,135 Jun-05-2021, 11:15 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020