Selecting tagged blocks of text

Selecting tagged blocks of text

4
NewbieNewbie
4

    Aug 19, 2006#1

    Please bear with me - I am currently a TextPad user who is frustrated at TextPad's inability to select text across multiple lines. I've downloaded UEdit to trial, and my first impressions are that it looks more powerful than TextPad and therefore *should* be able to do this. That said, a quick look at the help on Regular Expressions shows that, like text-pad, "?" does not match a new-line, nor do searches span multiple new-lines. I *think* the answer might lie in macros, and now that all said I will descibe my specific requirement and hope that someone can give me an answer!

    I want to select all blocks text in a document which is delimited by XML-style tags e.g <START>....</START> (even if it spans multiple lines), then copy and paste it in to a new (blank) document. The document in question is quite large (8k lines), which I mention because the work-round in TextPad failed with large files.

    Please help to make me a new UEdit user! Thanks in advance.

    6,686585
    Grand MasterGrand Master
    6,686585

      Aug 19, 2006#2

      Use the first macro I have posted at Find multiple occurrences of modified code.

      You only have to replace //START-MOD: with <START> and //END-MOD: with </START> in the macro code and maybe also the "not found string" at the end of the macro.
      Best regards from an UC/UE/UES for Windows user from Austria

      4
      NewbieNewbie
      4

        Aug 19, 2006#3

        Many thanks for this Mofi - looks like I'll be moving to UEdit!

        Note to newbies (like me) - for Mofi's useful macro to work you need to set the Continue if a Find with Replace Not Found check box on the macro's properties (Macro > Delete/Modify Macro Properties...)

        6,686585
        Grand MasterGrand Master
        6,686585

          Aug 20, 2006#4

          TobyR wrote:For Mofi's useful macro to work you need to set the Continue if a Find with Replace Not Found check box on the macro's properties (Macro > Delete/Modify Macro Properties...)
          Which of course I have written in the paragraph above my macro. If you use Macro - Record and not Macro - Quick Record which is just for quick recording a temporary macro you have first to set the properties before the recording starts. So I never write were to change the macro properties after recording. The macro properties can be also changed from within the Edit Macro dialog by clicking on the Modify button.
          Best regards from an UC/UE/UES for Windows user from Austria