Skip to content

Commit 500d486

Browse files
authored
Update README.md
1 parent 24293f9 commit 500d486

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

README.md

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ MultiReplace is a Notepad++ plugin that allows users to create, store, and manag
1111
- [Key Features](#key-features)
1212
- [Match and Replace Options](#match-and-replace-options)
1313
- [Scope Functions](#scope-functions)
14-
- [CSV Processing Functions](#csv-processing-functions)
15-
- [Sorting, Deleting, and Copying](#sorting-deleting-and-copying)
16-
- [Numeric Sorting in CSV](#numeric-sorting-in-csv)
14+
- [CSV Column Operations](#csv-column-operations)
1715
- [Option 'Use Variables'](#option-use-variables)
1816
- [Quick Start: Use Variables](#quick-start-use-variables)
1917
- [Variables Overview](#variables-overview)
@@ -75,25 +73,14 @@ Scope functions define the range for searching and replacing strings:
7573
- `Delim`: Define the delimiter character.
7674
- `Quote`: Delineate areas where characters are not recognized as delimiters.
7775

78-
### CSV Processing Functions
79-
80-
#### Sorting, Deleting, and Copying
81-
- **Sorting Lines in CSV by Columns**: Ascend or descend, combining columns in any prioritized order.
76+
### CSV Column Operations
77+
- **Sorting Lines by Columns**: Ascend or descend, combining columns in any prioritized order.
78+
- **Sorting Behavior**: CSV column sorting treats numeric and text values equally, ensuring correct order in mixed data.
8279
- **Toggle Sort**: Allows users to return columns to their initial unsorted state with just an extra click on the sorting button. This feature is effective even after rows are modified, deleted, or added.
8380
- **Exclude Header Lines from Sorting**: When sorting CSV files with the CSV scope selected, you can exclude a specified number of top lines (usually header rows) from sorting. Configure this behavior using the `HeaderLines` parameter in the INI file. For details, see the [`INI File Settings`](#configuration-settings).
8481
- **Deleting Multiple Columns**: Remove multiple columns at once, cleaning obsolete delimiters.
8582
- **Clipboard Column Copying**: Copy columns with original delimiters to clipboard.
8683

87-
#### Numeric Sorting in CSV
88-
For accurate numeric sorting in CSV files, the following settings and regex patterns can be used:
89-
90-
| Purpose | Find Pattern | Replace With | Regex | Use Variables |
91-
|-------------------------------------------|---------------------|----------------|-------|---------------|
92-
| Align Numbers with Leading Zeros (Decimal) | `\b(\d*)\.(\d{2})` | `set(string.rep("0",9-string.len(string.format("%.2f", CAP1)))..string.format("%.2f", CAP1))` | Yes | Yes |
93-
| Align Numbers with Leading Zeros (Non-decimal) | `\b(\d+)` | `set(string.rep("0",9-string.len(CAP1))..CAP1)` | Yes | Yes |
94-
| Remove Leading Zeros (Decimal) | `\b0+(\d*\.\d+)` | `$1` | Yes | No |
95-
| Remove Leading Zeros (Non-decimal) | `\b0+(\d*)` | `$1` | Yes | No |
96-
9784
<br>
9885

9986
## Option 'Use Variables'

0 commit comments

Comments
 (0)