Everyone may have this experience. Sometimes it is not simply to perform a search or replacement, but to have some special requirements, such as switching two columns and removing some attributes, in this case, you may consider using a regular expression in editplus.
The method for using the regular expression in editplus is as follows:
The variables are defined by arc, and the backslash + number is used, for example\ 1Indicates the first variable;
Common expressions:
[1] swap two columns
Requirements:
ABC C1
CD B1
-->
C1 ABC
B1 CD
Related Expressions:
\ 2 \ 1
^ (. +) (. +) $
[2] converting Java import to JSP Import
Requirements:
ImportCom. Test. CMS. process. iflowcontent;
ImportCom. Test. CMS. process. Engine. flowdocs;
ImportCom. Test. components. CMS. content. Persistent. channel;
ImportCom. Test. components. CMS. content. Persistent. channels;
-->
<% @ Page import = "com. Test. CMS. process. iflowcontent" %>
<% @ Page import = "com. Test. CMS. process. Engine. flowdocs" %>
<% @ Page import = "com. Test. components. CMS. content. Persistent. Channel" %>
<% @ Page import = "com. Test. components. CMS. content. Persistent. channels" %>
Related Expressions:
Import [^;] (. *);
<% @ Page import = "\ 1" %>
[3] replacing empty rows
^ \ N