Very Simple Replace Problem - but Newbie



  • How do I multiple replacements like

    ui_manufacturer=abc
    ui_manufacturer=def
    ui_manufacturer=ghi

    to

    ui_manufacturer=ABC
    ui_manufacturer=ABC
    ui_manufacturer=ABC



  • @Harry-Martin

    Well, few replacement problems are “simple” because the people asking the questions tend to oversimplify what they want (probably because they really don’t know how to ask…), but if your case is really as simple as stated, then the following should do it:

    Find what zone: (?-is)ui_manufacturer=...
    Replace with zone: ui_manufacturer=ABC
    Search mode: Regular expression

    Any basic site on regular expressions should clarify the meaning of the syntax used above.



  • Thank you. Unfortunately I get wrong results. Probably I oversimplified my problem.

    ui_manufacturer=aS 23 fs66-zz
    ui_manufacturer= de f
    ui_manufacturer=“xy”
    ui_manufacturer=g h i vy

    to

    ui_manufacturer=ABC
    ui_manufacturer=ABC
    ui_manufacturer=ABC
    ui_manufacturer=ABC

    So what I mean, everything after the equation mark “=” no matter what and how long, should be replaced by the same string. All in the same line.



  • @Harry-Martin

    Sure, I’ll do one more.

    Find what zone: (?-is)ui_manufacturer=.+

    Others settings are the same as the first try.



  • Works! Thank you.


Log in to reply