On Sun, 2008-09-28 at 17:26 +0100, Alan Gauld wrote:
> "Arun Tomar" <[EMAIL PROTECTED]> wrote
> 
> > I've been using shell scripting & using sed & pipes i've solved it,
> > but with python, i need to practice more ;).
ok, i got it.
here is the code that needs to be included after code in the last mail ;)

sub1 = "(-.*)|(Tel:)|\(M\)|\(R\)"
new_reg = re.compile(sub1)
for n in range(len(new_array)):
    mod_array.append(new_reg.sub('',new_array[n]))
        


cheers,
arun.

_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to