several lines replace

several lines replace

1
NewbieNewbie
1

    May 26, 2006#1

    hey all!

    I have a little problem. How can I replace multiple lines with other multiple lines in uedit?

    thx.

    344
    MasterMaster
    344

      May 26, 2006#2

      Hi

      IMHO it's best to write a macro that finds your "starting words", then "find select" your "ending words".
      Then replace the marked text with your new text (e.g. by using multiple clipboards)
      Put that in a macro loop and you've got it.
      rds Bego
      Normally using all newest english version incl. each hotfix. Win 10 64 bit

      6,675585
      Grand MasterGrand Master
      6,675585

        May 26, 2006#3

        You can also use ^c and ^s with a normal replace (not a regex replace).

        First select the lines of the replace block and copy it to clipboard (all 10 clipboards can be used). Then select the block to search for. Open the replace dialog and enter in the find field ^s and in the replace field ^c. Disable all options except Match Case if you want a 100% block match and run the replace.

        This method works also with the search string in clipboard - ^c in find field - and the replace block is currently selected - ^s in the replace field.

        ^s and ^c can be also used in Replace In Files. The size limit for the blocks is 30000 bytes.

        But take into consideration that the searched block must be identical (number, type and order of the characters) everywhere except for the case of the characters if Match Case is not used.
        Best regards from an UC/UE/UES for Windows user from Austria

        10
        Basic UserBasic User
        10

          May 26, 2006#4

          wow, indeed. I never paid attention to that help item. When did UE add this feature? Thanks!

          6,675585
          Grand MasterGrand Master
          6,675585

            May 26, 2006#5

            feng wrote:I never paid attention to that help item. When did UE add this feature?
            The ^s and ^c codes? Well, since I used UltraEdit the first time which was v8.00 many years ago (I think). In v9.20 the maximum was increased to 30.000 bytes as mentioned in readme.txt (or read.me).

            As I recommend very often, users should read the manual/help - the whole help. A user should always read the whole help of a program if he really uses it daily. There are so many "secrets" described in the help of really good applications that the time spent to read the whole help is regained in 1-4 weeks of usage.
            Best regards from an UC/UE/UES for Windows user from Austria