existNotepad++Delete each line in the middle#
The content from the beginning to the beginning of the line (including#
By itself, regular expressions can be used:
Open Notepad++
pressCtrl + H
Open the 'Find and Replace' window
Set the following content:
Find what:
^.*#
Or (if there may be no space after the '#'):
^.*#
Replace with:
(Leave blank)
Check:
✅“Regular expression”
❌ Do not check 'Match line breaks'
Click on 'Replace All'
Original text:
This is some content # This part will be deleted Keep part # Delete this part
After replacement:
This section will be deleted
If you only want to delete#
Starting from the beginning to the lineend ofPlease tell me the content, I can give you another expression.
Previous article:Comparative analysis of the financial situation of Intel, AMD, and Nvidia
Next article:Who invented the credit card? Tracing the Origin of Modern Financial Instruments