Tapatalk

Delete Special Characters (*) if the sequential count is >1

Delete Special Characters (*) if the sequential count is >1

1
NewbieNewbie
1

    Apr 04, 2006#1

    Has anyone needed to delete consecutive instances (varying throughout the file) of a special character (*) via a macro. Help.

    6,685587
    Grand MasterGrand Master
    6,685587

      Apr 05, 2006#2

      If I have understood your question correct use following regular expression in UltraEdit style to replace for example **** by a single *.

      Find What: ^*^*+
      Replace With: ^*

      The ^ is described in the help about regular expressions in UltraEdit style with: Overrides the following regular expression character

      See also Configuration - Searching - Special character used in Find/Replace strings (normally ^).

      In Unix style the \ has the same special meaning as the ^ for UltraEdit style. So in Unix style the appropriate replace is:

      Find What: \*\*+
      Replace With: \*
      Best regards from an UC/UE/UES for Windows user from Austria

      9
      NewbieNewbie
      9

        Re: Delete Special Characters (*) if the sequential count is >1

        Apr 05, 2006#3

        In normal RegEx you would use

        \*{1,}

        to specify more than 1 instance of the * character.

          Re: Delete Special Characters (*) if the sequential count is >1

          Apr 05, 2006#4

          In normal RegEx you would use

          \*{1,6}

          to specify more than 1 and less than 6 instance of the * character.
          Tom Tinsley
          UEStudio, UltraCompare, UltraSentry
          Windows 11