help with Search and Replace
Posted: 28 Feb 2021 04:15
I’m not sure if this belongs in the General or Plugin subs…
All of my Generic Sources have a trailing semi-colon at the end of the “Publisher Info” value string. (These were all imported from FTM; this appears to be an artifact of the FTM export.) This semi-colon “messes up” my formatted Footnotes, and I want to delete it. The Search and Replace plugin can uniquely explore this one field (so cool!), but I can’t figure out how to select this “last character” for replacement.
I tried ;\r and some other end-of-line and carriage-return expressions, and combinations of “Show White Space” but can’t select these.
I could do this to the GEDCOM in Notepad++, but “;\r” also picks other cases that I don’t want to modify, and I’d have to verify replacement one-by-one. I have hundreds.
I don’t speak “Lua” (yet). What is the expression or function or “pattern” that will let me do this with the plugin? (Re. the “LUA Pattern Mode” tick-box)
I’ve searched the KB’s -The Lua documentation may be easy to search, but it's hard for me to understand (so far; I’m just starting.).
- rob
All of my Generic Sources have a trailing semi-colon at the end of the “Publisher Info” value string. (These were all imported from FTM; this appears to be an artifact of the FTM export.) This semi-colon “messes up” my formatted Footnotes, and I want to delete it. The Search and Replace plugin can uniquely explore this one field (so cool!), but I can’t figure out how to select this “last character” for replacement.
I tried ;\r and some other end-of-line and carriage-return expressions, and combinations of “Show White Space” but can’t select these.
I could do this to the GEDCOM in Notepad++, but “;\r” also picks other cases that I don’t want to modify, and I’d have to verify replacement one-by-one. I have hundreds.
I don’t speak “Lua” (yet). What is the expression or function or “pattern” that will let me do this with the plugin? (Re. the “LUA Pattern Mode” tick-box)
I’ve searched the KB’s -The Lua documentation may be easy to search, but it's hard for me to understand (so far; I’m just starting.).
- rob