Usage tips of ultraedit

Source: Internet
Author: User

1. deduplication

If the data in the text is a row or a row with duplicate content, the deduplication method is file-sort-advanced sort/option, and "delete duplicate" is selected ".

2. garbled characters after searching

Save the file as text in UTF-16 format. The code page must be set:

Advanced -- set the code page/local, "installed code page in the system", and select "936 (ANSI/oem-Simplified Chinese GBK )";

Select "Chinese (China) People's Republic of China" for "region where the system is already installed ".

3. Regular Expression (ultraedit syntax ):

%Match the first line-indicates that the string to be searched must be the first line.
$Match the end of the row-indicates that the string to be searched must be at the end of the row.
?Match any single character except the line break.
*Match any number of characters (excluding line breaks)
+Match the leading character or expression once or more times (excluding line breaks)
++Match the leading character or expression with no or more than once (excluding line breaks)
^ BMatch the page interrupt character
^ PMatch line breaks of DoS Files
^ RMatch the line break of the Mac file (CR only)
^ NMatch the line break of a UNIX file (lf only)
^ TMatch a tab
[]Match a single character in square brackets

4. Use regular expressions to remove spaces at the end of blank rows and rows

Ultraedit has two traditional Regular Expressions: ultraedit and UNIX. Set it to: Advanced -- configuration -- search -- Regular Expression Engine.

Ultraedit regular expression:

Remove blank rows: % [^ t] ++ ^ P is replaced with blank (that is, nothing is input)

Remove trailing space: [^ t] + $ to blank

UNIX Regular Expressions:

Remove blank rows: ^ [] * With Blank

Remove trailing space: [] + $ to blank

5. In the ultraedit regular expression, an asterisk (*) is used to match any number of characters except line breaks. However, there is no corresponding symbol in the Unix regular expression, which can be replaced.

• Match any single character except line breaks. Duplicate line breaks are not matched.

The delimiter matches the previous character 0 or multiple times.

6. Common shortcut keys

Column editing
Alt + C (in this editing mode, you can also sum the numbers in the same column. This function can select any rectangular area, which is really useful. Who knows)

BookmarksCTRL + F2

Adjust the indentation of large blocks of code.TabIndent

Delete the entire row
CTRL + E

How to add a timestamp to an edited FileF7

Place the cursor at the beginning of the bracket and pressCTRL + B, Ue will help you find the end of the corresponding parentheses


This software has very powerful functions. The above mentioned is just a drop in the ocean. For example, there are many file comparison functions that I often use, you can quickly find the difference between the two files before and after modification. No matter what software is used, it has its unique features. We only need to be good at discovering, all kinds of software will provide us with unexpected help, which can make our work more efficient.

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.