Aspose.Cells Cloud Web API - Remove Duplicate Substrings
Perform operations or delete any custom characters, character sets, and substrings within a selected range for a specific position.
Introduction: Remove Unwanted Characters with Precision
The Repeat Substring Cleaner API removes duplicate substrings within individual cells of an Excel range while preserving cell formatting, data validation, and other workbook structure. It processes each cell independently, keeping only the first occurrence of each duplicate substring.
Data Source Options
| Field | Type | Required | Description |
|---|---|---|---|
workbook |
file | Yes | Excel workbook file (.xlsx, .xlsm) |
range |
string | Yes | Target range to process (e.g., “A1:D100”, “Sheet1!A:D”) |
Delimiter Options
| Field | Type | Default | Description |
|---|---|---|---|
delimiters |
string | "preset" |
Options: preset, custom , comma, semicolon, space, tab, line-break or Custom delimiter string (treats multiple chars as composite) |
treatConsecutiveAsOne |
boolean | false |
Collapse adjacent delimiters into single separator |
ignoreCase |
boolean | false |
Ignore case when comparing strings |
RemoveDuplicateSubstrings API
PUT http://api.aspose.cloud/v4.0/cells/content/remove/duplicate-substrings
The request parameters of removeCharacters API are
| Parameter Name | Type | Path/Query String/HTTPBody | Description |
|---|---|---|---|
| Spreadsheet | File | FormData | Upload spreadsheet file. |
| delimiters | String | Query | delimiters |
| treatConsecutiveDelimitersAsOne | Boolean | Query | collapse adjacent delimiters into a single separator. |
| caseSensitive | String | Boolean | |
| worksheet | String | Query | Specify the worksheet of spreadsheet. |
| range | String | Query | Specify the worksheet range of spreadsheet. |
| outPath | String | Query | (Optional) The folder path where the workbook is stored. The default is null. |
| outStorageName | String | Query | Output file Storage Name. |
| region | String | Query | The spreadsheet region setting. |
| password | String | Query | The password for opening spreadsheet file. |
Response
{
File
}
Error Codes
- 400 Bad Request: Invalid Aspose.Cells Cloud API URI.
- 401 Unauthorized: Invalid access token. Or invalid client id and secret.
- 404 Not Found: The spreadsheet file not accessible.
- 500 Server Error: The spreadsheet has encountered an anomaly in obtaining calculation data.
Where should we use the Remove Duplicate Substrings API?
- Data Cleaning & Standardization Scenarios: Clean up tags like
"VIP,Premium,VIP,Gold"→ `“VIP,Premium,Gold” - Technical & Operational Data: Clean log entries with repeated error codes, Remove duplicate bin/rack identifiers, and so on.
- Content & Media Management: Deduplicate skill tags, Remove redundant certification entries.
Why should you use the Remove Duplicate Substrings API?
- Automate Manual, Error-Prone Work: Eliminate tedious editing, Reduce human error, Scale instantly.
- Preserve Data Integrity: Cell colors, fonts, borders, and conditional formatting remain unchanged, Drop-down lists and validation rules are preserved.
- Flexible & Intelligent Processing: Delimiter-agnostic, Case-sensitive control, Header protection.
- Seamless Integration: API-first design, Language agnostic, Returns clean file.
OpenAPI Specification
The OpenAPI Specification defines a publicly accessible programming interface and lets you carry out REST interactions directly from a web browser.
Use Aspose.Cells Cloud SDKs
Using the SDK is the best way to accelerate development. The SDK handles the underlying details, allowing you to simply implement Remove characters for cells with minimal code. Please check out the GitHub repository for a complete list of Aspose.Cells Cloud SDKs.
The following code examples illustrate how to make calls to Aspose.Cells web services using various SDKs: