Remove all lines with less than so many characters

Remove all lines with less than so many characters

5
NewbieNewbie
5

    Jul 24, 2007#1

    I've been searching this question like crazy, and I've read all the FAQs, but nothing I find tells me how to do what seems like a simple Reg Expression.

    SO HERE IS MY SIMPLE QUESTION:

    I want to remove all lines (strings) that contain less than 41 characters.

    Pretty simple I bet, but no posts that I've found explain this.

    262
    MasterMaster
    262

      Jul 24, 2007#2

      You don't tell us which UE version you use, so let's assume you have UE 12.00 or later.

      Switch to Perl regex engine as described in the announcement.

      Then search (checkmark "Regular expressions") for:

      ^.{1,40}\r?\n

      and replace nothing.

      5
      NewbieNewbie
      5

        Jul 24, 2007#3

        Sorry...using UltraEdit Version 12.20