* Search & replace paragraph marks

Questions regarding use of any Version of Family Historian. Please ensure you have set your Version of Family Historian in your Profile. If your question fits in one of these subject-specific sub-forums, please ask it there.
Post Reply
User avatar
Robert Jacobs
Famous
Posts: 111
Joined: 21 Mar 2015 18:03
Family Historian: V7
Location: Ellensburg, Washington, U.S.A.
Contact:

Search & replace paragraph marks

Post by Robert Jacobs » 04 Mar 2021 15:44

I wish to search and replace text in the notes field, including the paragraph or end-of-line marker at the end of the text. How does one indicate the paragraph marker in the search field?

User avatar
tatewise
Megastar
Posts: 27078
Joined: 25 May 2010 11:00
Family Historian: V7
Location: Torbay, Devon, UK
Contact:

Re: Search & replace paragraph marks

Post by tatewise » 04 Mar 2021 16:07

Press the Enter or Return key and if Show White Space is enabled a ¶ pilcrow is shown.

As it says in the Help & Advice page for the Major Options tab:
https://pluginstore.family-historian.co ... ptions-tab
If Search is empty, only empty fields are matched. If Replace is empty, any matching Search text is deleted.
Both boxes support all characters including tab & newline.
However, there may not be an explicit newline character at the end of the Note text.
In that case, you must use the Lua Pattern Mode and enter the $ end of text anchor magic character.

If not sure whether an explicit newline character exists or not then use:
¶?$ which matches an optional newline character anchored to the end of the text.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry

User avatar
Robert Jacobs
Famous
Posts: 111
Joined: 21 Mar 2015 18:03
Family Historian: V7
Location: Ellensburg, Washington, U.S.A.
Contact:

Re: Search & replace paragraph marks

Post by Robert Jacobs » 04 Mar 2021 17:15

Thank you, Mike. That did it.


Robert

Post Reply