You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 12, 2022. It is now read-only.
I can find text using a Regex (Paragraph.FindAllByPattern function) but
cannot replace text with a Regex (Paragraph.ReplaceText function). Am I missing something?
This matches the text: $WordDocument.Paragraphs[2].FindAllByPattern('E.*?e',[System.Text.RegularExpressions.RegexOptions]::None)
This uses the same pattern but does not do the replacement: $WordDocument.Paragraphs[2].ReplaceText('E.*?e','Awesomeness', $false, [System.Text.RegularExpressions.RegexOptions]::None)