How to Add Missing Periods After In-Text Citations in Word
Question details
The user needs a way to automatically insert missing periods after the closing parenthesis of in-text citations when a new sentence begins immediately after.

- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Formatting academic or professional documents where in-text citations lack a trailing period before the subsequent capitalized sentence.
- Observed behavior
- Sentences contain citations like '(Smith, 2007) We analyzed' instead of the properly punctuated '(Smith, 2007). We analyzed.'
Before applying bulk wildcard replacements, save a copy of your document to ensure you can easily revert changes if the search pattern matches unintended text.
Use Wildcard Find and Replace
Utilize Microsoft Word's advanced Find and Replace feature with wildcard expressions to detect closing parentheses followed by a space and a capital letter, and insert a period.
Wildcards allow you to search for specific text patterns rather than exact words. By capturing the closing parenthesis as one group and the following space and capital letter as a second group, you can instruct Word to insert a period precisely between them without altering the surrounding text.
In your Word document, press the keyboard shortcut Ctrl + H to open the Find and Replace dialog box.
Click the 'More >>' button in the bottom left corner of the dialog box to reveal advanced search options, then check the box next to 'Use wildcards'.
In the 'Find what' field, type exactly (\))( [A-Z]{1}) to locate any closing parenthesis followed by a single space and a capital letter.
In the 'Replace with' field, type \1.\2 to insert a period after the first matched group (the parenthesis) and before the second matched group (the space and capital letter).
Click 'Find Next' to review the first match and ensure it is correct, then click 'Replace All' to automatically add periods to all matching citations throughout the document.

Format Citations Efficiently with WPS Office
WPS Writer offers robust document formatting tools, including advanced wildcard search capabilities fully compatible with Microsoft Word's syntax, making academic editing seamless and highly efficient.
- 1. Open your Document: Launch WPS Writer and open your academic or professional document.
- 2. Access Find and Replace: Press Ctrl + H to open the Find and Replace tool.
- 3. Configure Wildcards: Click 'Options' to expand the menu, and check the 'Use wildcards' box.
- 4. Execute Replacement: Enter (\))( [A-Z]{1}) in the Find field, \1.\2 in the Replace field, and click 'Replace All'.

Frequently Asked Questions
Why is the wildcard Find and Replace not working?
Ensure that the 'Use wildcards' option is checked in the expanded Find and Replace dialog box. Without this setting enabled, Word will search for literal backslashes and parentheses instead of interpreting your regex pattern.
What do \1 and \2 mean in the Replace field?
The \1 and \2 refer to the specific groups of text you defined in the 'Find what' field using parentheses. \1 represents the first group (the closing parenthesis), and \2 represents the second group (the space and capital letter). The replacement string \1.\2 tells Word to put those exact matched groups back, but with a period inserted between them.
Can I use this method to add commas instead of periods?
Yes. If you need to add commas instead, simply change your 'Replace with' expression to \1,\2. This will insert a comma immediately after the closing parenthesis.
How do I undo the wildcard replacement if it made mistakes?
You can instantly revert the bulk replacement by pressing Ctrl + Z (Undo) on your keyboard immediately after clicking 'Replace All'. This will remove all the incorrectly added periods in one step.




