<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Huh, did not realize that endswith takes a list.  I'll remember that in the future.<div>
<br></div><div>This need is actually for <a href="http://schemaspy.sourceforge.net/" target="_blank">http://schemaspy.sourceforge.net/</a>, which allows one to include only tables/views that match a pattern.</div>
<div><br></div><div>Either there is a bug in Schemaspy's code or Java's implementation of regular expressions is different than Python's or there is a flaw in my logic, because the pattern I verify using Python produces different results when used with Schemaspy.  I suppose I'll open a bug there unless I can find the aforementioned flaw.</div>

</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
if not table_name.endswith(('_CTL', '_DEL', '_RUN')):<br>
    # Do whatever<br><span><font color="#888888"><br>
</font></span></blockquote></div><br></div>
</div></div></blockquote></div>Shoot, sorry, did not mean to top-post.</div></div>