View Single Post
 
Old 12-10-2020, 01:29 PM
Peterson Peterson is offline Windows 10 Office 2019
Competent Performer
 
Join Date: Jan 2017
Posts: 143
Peterson is on a distinguished road
Default Applying styles via wildcard search not working as expected

I'm trying to use a wildcard string (below) to find unformatted text and apply a style to it. The string finds exactly what I'm looking for, but Word is applying the style to the *prior* paragraph, too, even though the Replace with field is set to just the second grouping in the wildcard string.
  • Find what: (^13)([0-9]{2}^t*^13)

  • Replace with: \2
    Style: Heading 1
I have to have the initial paragraph mark because the string will otherwise find instances of text that I'm not looking to apply the style to.

What am I doing wrong? I've restarted Word, thinking that I needed to shake out some residual weirdness in the Find/Replace, to no avail.
Reply With Quote