I'm having a hell of a time trying to transfer my experience with javascript regex to Python.
I'm just trying to get this to work:
print(re.match('e','test'))
...but it prints None. If I do:
print(re.match(…
For example I have string:
aacbbbqq
As the result I want to have following matches:
(aa, c, bbb, qq)
I know that I can write something like this:
([a]+)|([b]+)|([c]+)|...
But I think i's ugly and looking for better …
How do i return a sublist of a list of strings by using a match pattern. For example I have
myDict=['a', 'b', 'c', 'on_c_clicked', 'on_s_clicked', 's', 't', 'u', 'x', 'y']
and I want to return:
…