If you only want to delete the odd lines and not cut them all into the clipboard you don't really need a macro. Just make sure the last line of the file has a line termination.
Press Ctrl+End to move the cursor to end of the file. If the cursor is now not at column 1, press key Return.
Press Ctrl+Home to move the cursor back to top of the file.
Press Ctrl+R to open the replace dialog.
Enter %[ ^t]+[A-Z] *^p
in the Find What
Make sure nothing is in the Replace With
Check the options Match Case
and Regular Expressions
and uncheck all other. Make sure Current File
is selected in Replace Where
Press the button Replace All
If that does not work, you maybe have a UNIX or MAC file openend without conversion to DOS (see second cell on status bar at top of the UltraEdit window) and therefore ^p does not find a CRLF. Use ^n for UNIX or ^r for MAC instead in the regular expression search string.
Or you have actually not the UltraEdit regular expression engine selected in the search configuration dialog - see topic Readme for the Find/Replace/Regular Expressions forum
If you want the cutted lines collected in the current clipboard, do following:
Click on Macro - Record Macro
Enter a name for the macro, uncheck
the first property
for the Cancel
dialog, but check
the second property
for the Continuing macro execution when a search string is not found
Start the recording with clicking on button OK
Stop the recording with clicking on Macro - Stop Recording
Click on Macro - Edit Macro
to open the just recorded macro.
Go to your browser and copy the lines of one of the macros to the Windows clipboard.
Back to UltraEdit select the first 3 lines in the edit macro dialog and press Ctrl+V to replace it with the macro code. The 4th line which is the command to select the regular expression engine you currently use is now at bottom of the macro.
Press the button Close
and confirm modification of the macro with Yes
Click on Macro - Play Again
to run the macro now.
If whether the replace command nor the macro works, the file is opened in read-only mode indicated by R/O
in the status bar of UltraEdit.