Document Editing Problems

Use WPS Writer Wildcards to Add Spaces Between Words and Numbers

Muhammad TalhaMuhammad Talha Nov 13, 2026 869 views

Question details

The user needs to automatically separate merged names and numbers by inserting spaces with wildcard Find and Replace while preserving the matched characters.

Use WPS Writer Wildcards to Add Spaces Between Words and Numbers
Product
WPS Office Writer
Device & OS
not provided
Scenario
Large strings such as merged names and numbers must be reformatted automatically across a document.
Observed behavior
The text remains merged without spaces between lowercase/uppercase letters or between numbers and following text.
Before you start

Open the target document in WPS Writer and, if needed, select only the text range you want to reformat. Make sure the Find and Replace dialog is available and that wildcard matching can be enabled.

Solution 1Recommended

Separate Lowercase and Uppercase Letters with a Wildcard Replace in WPS Writer

Use this solution when merged names such as JohnDoe or MainStreet need automatic spacing without manual edits.

The wildcard groups ([a-z]) and ([A-Z]) capture a lowercase letter and an uppercase letter. The replacement \1 \2 inserts a space between them while preserving both characters exactly.

1
Open Find and Replace

In WPS Writer, click the Home tab, select Find and Replace, and choose Replace, or press Ctrl+H.

2
Enable wildcards

In the Replace dialog, click More and check Use wildcards so the pattern syntax is recognized.

3
Enter the find and replace expressions

In Find what, type ([a-z])([A-Z]). In Replace with, type \1 \2.

4
Apply the replacement

Click Replace All to insert spaces between every lowercase-to-uppercase boundary in the selection or document.

Separate Lowercase and Uppercase Letters with a Wildcard Replace in WPS Writer
Matched characters are preserved: WPS Writer keeps the original letters because \1 and \2 refer to the first and second wildcard groups.
WPS Writer wildcard find and replace

Add Spaces Between Words and Numbers with Wildcards in WPS Writer

Use WPS Writer's Find and Replace with wildcard backreferences to separate merged text automatically. WPS Writer provides the same pattern-based editing workflow in a free, lightweight Office suite.

  1. 1. Open WPS Writer: Launch WPS Office Writer and open the document containing the merged names and numbers.
  2. 2. Open Replace dialog: Click Home > Find and Replace > Replace, or press Ctrl+H.
  3. 3. Enable wildcard matching: Click More and check Use wildcards to activate pattern matching.
  4. 4. Enter wildcard expressions: Use Find what ([a-z])([A-Z]) and Replace with \1 \2 for lowercase-to-uppercase spacing, or ([0-9])([A-Za-z][!0-9^13]{1,}) and \1 \2^p for number-to-text splits.
  5. 5. Replace all: Click Replace All to automatically separate all matching text while preserving the original characters.
Insert spaces between letters and numbers in one Replace All passPreserve matched characters with wildcard backreference groupsFully compatible with Microsoft Word .docx wildcard Find and Replace workflowsFree and lightweight Office suite with a familiar Home tab and Replace dialogSupports paragraph breaks and space-only replacements in the same wildcard tool
microsoft office alternative - wps office

Frequently Asked Questions

Does WPS Writer support the same wildcard patterns as Microsoft Word?

Yes. WPS Writer supports wildcard Find and Replace with groups and backreferences. Enable Use wildcards in the Replace dialog before entering patterns such as ([a-z])([A-Z]).

How do I add a space instead of a paragraph break between a number and letters?

Use Replace with \1 \2 after a pattern like ([0-9])([A-Za-z]). The groups keep the number and letter, and the space between \1 and \2 is inserted.

Why is my wildcard find not matching in WPS Writer?

Make sure Use wildcards is checked; without it WPS treats parentheses and brackets as literal text. Also check that the document language and extra spaces are not interfering.

Can I apply wildcard Replace All to only part of the document?

Yes. Select the range before opening Replace, then click Replace All to limit the operation to the selection.

What do the backreference numbers mean in Replace with?

\1 and \2 refer to the first and second parenthesized groups in Find what, so the matched characters are preserved in the replacement.