I'm trying to get this regex to pick out both 7gh and 7ui but I can only get it to pick out the first one. If anyone knows how to amend the regex such that it also picks out 7ui, I would seriously appreciate it. I should also point out that I mean strings separated by a space.
b = re.search(r'^7\w+','7gh ghj 7ui')
c = b.group()
findallinstead ofsearcha7b? Both solutions would currently pick it as7b- is that correct?