Hi, I'm new to this site, and new to Python.
So I'm learning about Regular Expressions and I was working through Google's expamples here.
I was doing one of the 'Search' examples but I changed the 'Search' to 'Split' and changed the search pattern a bit just to play with it, here's the line
print re.split(r'i', 'piiig')
(notice that there are 3 'i's in the text 'piiig')
The output only has 2 spaces where it's been split.
['p', '', '', 'gs']
Just wondering why this gives that output. This isn't a real life problem and has no relevance but I'm thinking I could run into this later on and want to know what's going on.
Anybody know what's going on???