Popular recipes tagged "string_parsing"http://code.activestate.com/recipes/tags/string_parsing/2011-03-20T20:33:13-07:00ActiveState Code RecipesSplit Strings w/ Multiple Separators (Python) 2011-03-20T20:33:13-07:00Kenneth Reitzhttp://code.activestate.com/recipes/users/4177394/http://code.activestate.com/recipes/577616-split-strings-w-multiple-separators/ <p style="color: grey"> Python recipe 577616 by <a href="/recipes/users/4177394/">Kenneth Reitz</a> (<a href="/recipes/tags/split/">split</a>, <a href="/recipes/tags/string/">string</a>, <a href="/recipes/tags/string_parsing/">string_parsing</a>). Revision 5. </p> <p>Splits strings with multiple separators instead of one (e.g. <code>str.split()</code>).</p> Split a string on capitalized / uppercase char using Python (Python) 2009-12-11T23:16:36-08:00activestatehttp://code.activestate.com/recipes/users/4172588/http://code.activestate.com/recipes/576984-split-a-string-on-capitalized-uppercase-char-using/ <p style="color: grey"> Python recipe 576984 by <a href="/recipes/users/4172588/">activestate</a> (<a href="/recipes/tags/string/">string</a>, <a href="/recipes/tags/string_parsing/">string_parsing</a>, <a href="/recipes/tags/text_processing/">text_processing</a>). Revision 6. </p> <p>By user <a href="http://code.activestate.com/recipes/users/2629617/" rel="nofollow">http://code.activestate.com/recipes/users/2629617/</a> in comment on <a href="http://code.activestate.com/recipes/440698/" rel="nofollow">http://code.activestate.com/recipes/440698/</a> but modified slightly.</p> <p>Splits any string on upper case characters.</p> <p>Ex.</p> <pre class="prettyprint"><code>&gt;&gt;&gt; print split_uppercase("thisIsIt and SoIsThis") this Is It and So Is This </code></pre> <p>note the two spaces after 'and'</p>