Python Regex remove numbers and numbers with punctaution
<p>I have the following string</p>

<pre><code> line = "1234567 7852853427.111 https://en.wikipedia.org/wiki/Dictionary_(disambiguation)"
</code></pre>

<p>I would like to remove the numbers 1234567 7852853427.111 using regular expresisions</p>

<p>I have this re
    nline = re.sub("^\d+\s|\s\d+\s|\s\d\w\d|\s\d+$", " ", line)</p>

<p>but it is not doing what i hoped it would be doing.</p>

<p>Can anyone point me in the right direction?</p>

<p>Here's a non-regex approach, if your regex requirement is not entirely strict, using <a href="https://docs.python.org/2/library/itertools.html#itertools.dropwhile" rel="nofollow"><code>itertools.dropwhile</code></a>:</p>

<pre><code>&gt;&gt;&gt; ''.join(dropwhile(lambda x: not x.isalpha(), line))
'https://en.wikipedia.org/wiki/Dictionary_(disambiguation)'
</code></pre>

python regex