MyEclipse removes the line numbers (regular line numbers) of the code copied from the Internet
1、 Regular expressions remove code line numbers
As developers, we often copy some code from the Internet. Sometimes the copied code is preceded by a line number, such as:
MyEclipse has its own find and replace function, and supports regular expression replacement. Using regular replacement can easily remove these line numbers
Use the shortcut key "Ctrl + F" to open the find and replace function of MyEclipse, as shown in the following figure:
This will remove all line numbers from the code
Regular expressions that remove line numbers: ^ \ s * \ D + \
summary
The above is the line number (regular line number removal) of MyEclipse code copied online introduced by Xiaobian. I hope it will be helpful to you. If you have any questions, please leave me a message and Xiaobian will reply to you in time. Thank you very much for your support for the programming tips website!