Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

pas function rereplace on local string var

Help
Anonymous
2012-12-13
2013-01-25

  • Anonymous
    2012-12-13

    Hello,

    Is it possible pas the editor function rereplace OR pyreplace on a local string variable ….
    example:

    import sys, re

    mystring = "one; two  ; three   ; four        ;"
    mystring.rereplace("(\s+)",";")
    console.write(mystring)

    output should be:
    one; two; three; four;

    if i use is from notepad it works wel… But how do i pass editor functions on local variables????

    gr

    Ismail