how to do regular expressions
and remove waht is in and also the brackets
<>

Kent Johnson <[EMAIL PROTECTED]> wrote:
anil maran wrote:
>
Human nature is not a machin...
>
>
> for example in the above stirng
>
> i want to remove

> and

Try one of these:
http://www.oluyede.org/blog/2006/02/13/html-stripper/
http://www.aminus.org/rbre/python/cleanhtml.py
>
> i tried
>
> str = str.replace('(.*)','')
>
> it doesnt work
because it looks for a literal "(.*)" in the string and replaces it with
an empty string. Since "(.*)" doesn't appear, nothing is replaced.

Kent
> thanks
>
> ------------------------------------------------------------------------
> Talk is cheap. Use Yahoo! Messenger to make PC-to-Phone calls. Great
> rates starting at 1ยข/min.
>
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Tutor maillist - Tutor@python.org
> http://mail.python.org/mailman/listinfo/tutor
>


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


Do you Yahoo!?
Get on board. You're invited to try the new Yahoo! Mail Beta.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to