I'm trying to get to know python a bit, but I'm kind of stuck...
How do the regular expressions work??? I know how to define and compile a re and I use the search function to go through a string with it. But then I get a "Match object" returned and I can't find a way to do anything useful with that... How can I restore the found occurrences or the their positions in the input string?
I need to find the matching sequences in a string, can someone point me how to do so?
This is what I've got now:Code:p=re.compile("[A-Z][A-Z][A-Z][a-z][A-Z][A-Z][A-Z]") m=re.search(p,str)
Bookmarks