Editplus Regular Expressions

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.