I am trying to use the Search and Replace plugin to replace text in the note field of marriage facts. The text includes newlines like:
[[
text 1:
text 2:
]]
change to:
[[
newtext:
]]
But the plugin gives an error memo and refuses to do it.
What am I missing?
* use search and replace plugin with newline in text
- Jane
- Site Admin
- Posts: 8508
- Joined: 01 Nov 2002 15:00
- Family Historian: V7
- Location: Somerset, England
- Contact:
Re: use search and replace plugin with newline in text
What exactly does the error say?
Do you have patterns turned on? If so you will need to escape the square brackets with a percent sign.
Do you have patterns turned on? If so you will need to escape the square brackets with a percent sign.
Jane
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
My Family History : My Photography "Knowledge is knowing that a tomato is a fruit. Wisdom is not putting it in a fruit salad."
Re: use search and replace plugin with newline in text
It says:
Newline characters in search&/or replace text are reserved exclusively for long text fields, such as note, fact address, text from source.
LUA patters is turned off (I am doing a text to text replace; only thing is that it is a multi-line text).
The square brackets are not part of the search nor of the replace text.
Newline characters in search&/or replace text are reserved exclusively for long text fields, such as note, fact address, text from source.
LUA patters is turned off (I am doing a text to text replace; only thing is that it is a multi-line text).
The square brackets are not part of the search nor of the replace text.
- tatewise
- Megastar
- Posts: 28341
- Joined: 25 May 2010 11:00
- Family Historian: V7
- Location: Torbay, Devon, UK
- Contact:
Re: use search and replace plugin with newline in text
That message suggests you have NOT set the Filters to just Note fields.
I suggest you restrict the Search Scope to Marriage (MARR.FAM) and Basic Filters to Note fields.
To be very specific, on the Extra Filters tab set Note fields top right to Fact Notes (~Fact.NOTE).
If the [[ and ]] are not part of the required Search text or Replace text then do NOT enter them.
I suggest you restrict the Search Scope to Marriage (MARR.FAM) and Basic Filters to Note fields.
To be very specific, on the Extra Filters tab set Note fields top right to Fact Notes (~Fact.NOTE).
If the [[ and ]] are not part of the required Search text or Replace text then do NOT enter them.
Mike Tate ~ researching the Tate and Scott family history ~ tatewise ancestry
Re: use search and replace plugin with newline in text
Thanks Mike, the filter setting did it.