string strip in python
<p>I  would   need   to stripoff "domain\"  from  "domain\name"   to extract name  which can   be any name or the  word name  literally </p>

<pre><code>&gt;&gt;&gt; s="domain\name"

&gt;&gt;&gt; x=s[5:]
&gt;&gt;&gt; print(x)
n
ame
&gt;&gt;&gt; s="domain\bh16"
&gt;&gt;&gt; x=s[5:]
&gt;&gt;&gt; print(x)
h16
&gt;&gt;&gt; x=s[4:]
&gt;&gt;&gt; print(x)
ih16
</code></pre>