Tapatalk

How to replace/remove first/second character from each line

How to replace/remove first/second character from each line

9
NewbieNewbie
9

    Jan 07, 2005#1

    I know that I can use column mode but I would like to know how to do it with reg exp. For example:
    aaxxxxx
    bbxxxxx
    ccxxxxx
    How to remove aa bb and cc.
    Thanks

    206
    MasterMaster
    206

      Jan 07, 2005#2

      Unix mode:

      Find What: ^..(.*)$
      Replace With: \1
      Software For Metalworking
      http://closetolerancesoftware.com

      9
      NewbieNewbie
      9

        Jan 08, 2005#3

        Thanks

        12
        Basic UserBasic User
        12

          Jun 15, 2006#4

          nice... and exist this for Regular expressions in UltraEdit style???

          6,685587
          Grand MasterGrand Master
          6,685587

            Jun 15, 2006#5

            In UltraEdit style:

            Find What: %??^(*^)$
            Replace With: ^1

            Regular expression translations between legacy Unix and UltraEdit style can be easily done with the tables in the help of UE/UES at topic "Regular Expressions" which I have told you already and you hopefully have read it carefully.

            Following does the same faster:

            Find What: %[~^r^n][~^r^n]
            Replace With: nothing
            Best regards from an UC/UE/UES for Windows user from Austria