* Editor to Find and Replace blocks in Gedcom file

Homeless Posts from the old forum system
Locked
avatar
oldtimer47
Diamond
Posts: 56
Joined: 23 Dec 2008 07:01
Family Historian: None

Editor to Find and Replace blocks in Gedcom file

Post by oldtimer47 » 07 Oct 2010 08:47

Its a long story but I would like to replace some references to sources in a Gedcom file. These are 'where used within source' so there are lots of them throughout the file. The quickest way is to do a text block find and replace so that I can find the block of lines that I need to change and replace them with a modified block.

Finding an editor that can do this and that is FREE is proving to be very difficult. Most editors will only find and replace 1 line.

I was wondering if anyone else on the Forums had done this and could suggest a suitable editor.

Many Thanks
Peter

ID:4820

User avatar
Jane
Site Admin
Posts: 8440
Joined: 01 Nov 2002 15:00
Family Historian: V7
Location: Somerset, England
Contact:

Editor to Find and Replace blocks in Gedcom file

Post by Jane » 07 Oct 2010 09:24

I normally use:
http://www.nodesoft.com/searchandreplace/

Additionally, in PSPAD you can add the phReplace plug in which does multiple lines.

http://www.pspad.com/en/pspad-extensions.php?stranka=3

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

Editor to Find and Replace blocks in Gedcom file

Post by tatewise » 08 Oct 2010 18:23

Quick Search and Replace has many handy features including Regular Expressions for find and replace, plus batch editing, and it is FREE.
So for example the following meta-characters will find:
t tab (HT/TAB)
n new line (NL)
r car return (CR)
f form feed (FF)
a alarm (bell) (BEL)
e escape (ESC)

http://www.searchreplacetext.com

avatar
oldtimer47
Diamond
Posts: 56
Joined: 23 Dec 2008 07:01
Family Historian: None

Editor to Find and Replace blocks in Gedcom file

Post by oldtimer47 » 08 Oct 2010 22:49

Thanks for the replies so far.
At the moment PSPAD with the extension is my favoured option.

Peter

User avatar
GladToBeGrey
Famous
Posts: 115
Joined: 26 Oct 2004 09:16
Family Historian: V7
Location: Dorset, UK

Editor to Find and Replace blocks in Gedcom file

Post by GladToBeGrey » 12 Oct 2010 10:38

It's worth taking a look at Notepad++, too.  It also has powerful search/replace functions, including Regular Expressions.

http://notepad-plus-plus.org/

User avatar
PeterR
Megastar
Posts: 1129
Joined: 10 Jul 2006 16:55
Family Historian: V7
Location: Northumberland, UK

Editor to Find and Replace blocks in Gedcom file

Post by PeterR » 12 Oct 2010 12:36

I think only PSPad has the significant added benefit of Jane's extensions to semi-automatically build FH functions ready to paste into Queries or other expression locations:
http://www.fhug.org.uk/wiki/doku.php?id ... pad_editor
and
http://www.fhug.org.uk/wiki/doku.php?id ... _functions

avatar
oldtimer47
Diamond
Posts: 56
Joined: 23 Dec 2008 07:01
Family Historian: None

Editor to Find and Replace blocks in Gedcom file

Post by oldtimer47 » 21 Oct 2010 13:32

Another one to add to the list is

PilotEdit Lite

The Lite version is free and can do block find and replace.

Peter

Locked