parameter passing to split function from if condition
<pre><code>string= "im fine.gds how are you"

if '.gds' or '.cdl' in string :

    a=string.split("????????")
</code></pre>

<p>the above string may contain <code>.gds</code> or <code>.cdl</code> extension. i want to split the string based on the extension. </p>

<p>here how the parameters can be passed to split funtion.(<strong>EX</strong> if <code>.gds</code> is present in string then it should take as <code>split(".gds")</code>
if <code>.cdl</code> is there in string then it should get <code>split(".cdl")</code>)</p>
