Use WPS Writer Wildcards to Add Spaces Between Words and Numbers
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.

- 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.
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.
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.
In WPS Writer, click the Home tab, select Find and Replace, and choose Replace, or press Ctrl+H.
In the Replace dialog, click More and check Use wildcards so the pattern syntax is recognized.
In Find what, type ([a-z])([A-Z]). In Replace with, type \1 \2.
Click Replace All to insert spaces between every lowercase-to-uppercase boundary in the selection or document.

Separate Numbers from Following Text with a Wildcard Replace
Use this solution when strings such as 123MainStreet need the number split from the letters, optionally with a paragraph break.
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. Open WPS Writer: Launch WPS Office Writer and open the document containing the merged names and numbers.
- 2. Open Replace dialog: Click Home > Find and Replace > Replace, or press Ctrl+H.
- 3. Enable wildcard matching: Click More and check Use wildcards to activate pattern matching.
- 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. Replace all: Click Replace All to automatically separate all matching text while preserving the original characters.

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.




