Has anyone needed to delete consecutive instances (varying throughout the file) of a special character (*) via a macro. Help.
Delete Special Characters (*) if the sequential count is >1
Delete Special Characters (*) if the sequential count is >1
- 1
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: \*
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
Re: Delete Special Characters (*) if the sequential count is >1
In normal RegEx you would use
\*{1,}
to specify more than 1 instance of the * character.
\*{1,}
to specify more than 1 instance of the * character.
Re: Delete Special Characters (*) if the sequential count is >1
In normal RegEx you would use
\*{1,6}
to specify more than 1 and less than 6 instance of the * character.
\*{1,6}
to specify more than 1 and less than 6 instance of the * character.
Tom Tinsley
UEStudio, UltraCompare, UltraSentry
Windows 11
UEStudio, UltraCompare, UltraSentry
Windows 11