by Mofi » Sat Oct 16, 2004 9:12 am
Following regexp search in UltraEdit style will find any character, which is greater than 0x00 (NULL) and lower than 0x20 (SPACE) and greater than 0x7E except CR, LF and TAB.
Find: [~!"#$%&'()*+,^-./0-9:;<=>?@A-Z^[\^]^^_`{|}~ ^p^t]
To delete this non printing characters use replace instead of simple search.
An addition - Finding NULL:
Do you want the NULL only inside a double quoted text or simply in the whole file?
In the whole file it is easy, search for 00 in hex mode.
If you want to find it only in a string, you first must copy a NULL to clipboard. Create it in hex mode temporary, if necessary. Then make a regexp search for "*^c*" with the UltraEdit regular expression engine and UltraEdit highlights the string with a NULL inside. The NULL should be displayed as space.