Notepad ++ Memorandum 1

Source: Internet
Author: User

What is the \ 1 of notepad ++ used?
\ 1 is used in the replaced expression to replace the first matching group in the searched expression. For example, you can find ABC (. *) 123, replace with 456 \ 1def, and identify all strings starting with ABC and ending with 123. Replace ABC with 456 and ending with Def.
Replace \ 1 in the expression to indicate (. *) in the Search expression (.*)
I am used to using emeditor.
Regular Expressions are easier than notepad ++.
In addition, you can try powergrep.
This software is specially designed to replace text with regular expressions and has very powerful functions.
Both of these software are charged, but there is a cracked version.

I am dull. For example.

Sample1:

Source:

Abcaaa123
Abcbbb123
Abcccc123
Abcddd123

Search target: ABC (. *) 123

Target replacement: 456 \ 1def

Result:

456 aaadef
456 bbbdef
456 cccdef
456 ddddef

Sample2:

Source:

Int gdqlxbhindex
Int gdqlxmcindex
Int qshydlindex
Int qshzdydfhindex
Int wgdlindex
Int wgzdfhindex

Search target: int (. *) Index

Target of replacement: Row. getcell \ (\ 1index \). settext \ (string. valueof \ (item. Get \ ("\ 1 "\)\)\);

Result:

row. getcell (gdqlxbhindex ). settext (string. valueof (item. get ("gdqlxbh");
row. getcell (gdqlxmcindex ). settext (string. valueof (item. get ("gdqlxmc");
row. getcell (qshydlindex ). settext (string. valueof (item. get ("qshydl");
row. getcell (qshzdydfhindex ). settext (string. valueof (item. get ("qshzdydfh");
row. getcell (wgdlindex ). settext (string. valueof (item. get ("wgdl");
row. getcell (wgzdfhindex ). settext (string. valueof (item. get ("wgzdfh");

Related Article

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.