Regular expression solution

nickname thebiggestbangtheory at
Wed Jul 29 01:12:19 CEST 2009

Hello all,
            I'm a newbie with python. I am looking to write a regex
program which can take in a piece of text and remove some parts of it
and supply the remaining parts back.

The input can be something like:
<script>document.write("h" +"e"+ "ll"+ "ooooo"+ " m" +"y"+" n"+"ame"+
" is  "+"21c";)</script>

The output should be something like
<script>document.write("hellooooo my name is  21c";)</script>

I have tried and failed. I am reading
and hope to get somewhere with this soon. If this is something simple,
can someone please help me out.

Thanks in advance for any help.

More information about the Python-list mailing list