Source: DREAM4Ever.org ------------------------------------------- -------------------------------------------------- -------------------- Regular expression class [1] Regular expression application - replacement specified content to the end of the line [2] Regular expression application - number Replace ---------------------------- Microshaoft @ CCF, Jiuk2k @ CCF [3] Regular expression application - Delete each line Specify character [4] Regular expression application - replace multi-line brackets with half-way brackets -------------- Lucida @ DRL [5] Regular expression application - Delete blank line - --------------------------- Jiangdehua Software Skills ------------------- ----------------------------------- [6] Software Skills - Keyboard Record Notes [7] Software Skills - Close Document Tags (8] Software Skills - How do I get the addition suffix prompt when EditPlus saves text files? [9] Software Skills - Tips Can't find the solution of grammar files [10] Software Skills - Setup EDITPLUS to support other words, such as Korean ---------- Jackywu1978 @ LJF [11] Software Tips - -FTP upload settings ---------------------------- Li Yingwen 2.11 Chinese version [12] Software Skills - How to disable the backup file function? [13] Software Skills - Add syntax files, automatic completion files, and clip file tool integration class ---------------------------- -------------------------- [14] Tool Integration - Compiler Integrated Example (Java, Borland C , Visual C , Inno Setup, NSIS , C #) [15] Tool integration - let EditPlus debug PHP program -------------------- Avenger, Aukw @ CCF [16] tool integration - to create PHP debugging environment (2) ---------------------- Old seven 2.11 Chinese version [17] Integrated Editplus in WinPE Subsequent Add ------- ----------------------------------------------- [18] Support with UTF-8 tags / without UTF-8 tagged files -------------------- Lei @ DRL Every step is very detailed, there is no If necessary, the volume is not too big. [1] Regular expression application - replacement specified content to the row of original text as the following two lines AAAAAA123 ABC 444 I hope "ABC" will be encountered each time, then "ABC" and the contents of "ABC" and the end of the line are "ABC" EFG "The above text is finally replaced with: ABC EFG123 ABC EFG Solution: 1 In the Replace dialog box, enter" ABC. * "in the lookup content, check the" Regular Expression "check box, then click" All Replace " The button is, the meaning of the symbol is as follows: "." = Match any character "*" = match 0 times or more attention: It is actually the regular expression replacement, here is just some of the issues that have been put forward, simply from regular expressions In it, you can take thousands of special cases.
[2] Regular expression application - Digital replacement (microshaoft @ ccf, jiuk2k @ ccf) I hope to replace asDadasdasdaDasdasdasdasdasdasdasdasd 789asdasdaraDasDADAS [123] asdasdas [456] asdasdasd [789] asdasd in the replacement dialog box, check "Regular expression "" Check box; enter "[0-9] [0-9] [0-9]" [0-9] "[0-9]" [0-9] "[0-9]", without quotation marks "is replaced with:" Inside "[/ 0/1/2]", Does not include the range range for you, then select Alternative. In fact, this is also the usual case of regular expressions, "[0-9]" indicates any special case that matches between 0 to 9, and "[AZ]" indicates that the matching A to Z is repeatedly used. "[0-9]", indicating the three numbers "/ 0" representative of the continuous "[0-9]" corresponding prototype, "/ 1" represents the second "[0-9]" corresponding The prototype, according to such push "[", "]" as simple characters, indicates that "[" or "]" is added, if you enter "other / 0/1/2 other", the replacement result is: asDadas other 123 other Asdasdas other 456 Other ASDASDASD Other 789 Other ASDASD function enhancements (by jiuk2k @ ccf): If you will find content "[0-9] [0-9] [0-9]" change to "[0-9] * [0 -9] ", corresponding to 1 or 123 or 12345 or ... there are many custom related content as needed, you can take care of the syntax of the regular expressions to study [3] Regular expression application - delete each line The specified character is also due to these characters in the row, so it is definitely not to achieve a simple replacement such as 12345 12653452345 Need to delete the "345" at the end of each row, it is also the usage of the regular expression, in fact, look at the regular expression It should be relatively simple, but since this problem has been proposed, it will be aware that the regular expression has to have awareness process. The solution is resolved: In the Replace dialog box, enable the "Regular Expression" checkbox Inside the lookup content "345 $ "Here" $ "indicates that if you match the first match, you can use" ^ "to implement, but EditPlus has another function to delete the lead character string a. Select the line B you want to operate. Edit - Format - Delete Rights C. In the pop-up dialog box, enter the lead character you want to clear, determine [4] Regular expression application - replace the multi-line hundreds of web pages with half-way brackets, there are below a piece of code :