Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • \$\begingroup\$ This doesn't take input, but otherwise looks like a good approach. \$\endgroup\$ Commented Jun 25, 2014 at 20:29
  • \$\begingroup\$ Also you're missing an import re or __import__('re') for the findall. \$\endgroup\$ Commented Jun 25, 2014 at 21:36
  • \$\begingroup\$ fixed, I forgot I was testing it interactively ;) \$\endgroup\$ Commented Jun 25, 2014 at 21:50
  • \$\begingroup\$ Your byte count was different, I saw the discrepancy and fixed that part of the code. I also changed to byte count, not char count. \$\endgroup\$ Commented Jan 11, 2017 at 15:59