Chris

Thanks for this - I recommended Ryan to the geniuses on this list. I figured it 
would be possible, but didn’t know where to begin to think about it.

Once the text of the NOTE tag has been moved to the  1 OCCU line, the entire 
line

2 NOTE xxxxxxxx

can be deleted.

Roger

> On Sep 18, 2021, at 4:14 PM, Christopher Stone <[email protected]> 
> wrote:
> 
>> On Sep 18, 2021, at 14:19, Ryan Noyes <[email protected] 
>> <mailto:[email protected]>> wrote:
>> Seeking workflow advice for wrangling a genealogical GEDCOM file in such a 
>> way that content normally appearing within the red box in this screenshot, 
>> instead populates where the green box is.
> 
> Hey Ryan,
> 
> You did a good job explaining the problem and providing a sample to work 
> with.  The only thing you left out was an actual example of the desired end 
> result.
> 
> One has to guess what you want done with the NOTE field.
> 
> I'm assuming you want it left blank, but I don't like to assume...
> 
> Try this:
> 
> Find:
> 
> (?-i)^(\d+\h+OCCU\h+)(.+)((?s)(.+?)\n^\d+\h+NOTE\h)(?-s)(.+)
> 
> Replace:
> 
> \1\5\3
> 
> 
> --
> Best Regards,
> Chris
> 
> 
> -- 
> This is the BBEdit Talk public discussion group. If you have a feature 
> request or need technical support, please email "[email protected]" 
> rather than posting here. Follow @bbedit on Twitter: 
> <https://twitter.com/bbedit <https://twitter.com/bbedit>>
> --- 
> You received this message because you are subscribed to the Google Groups 
> "BBEdit Talk" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected] 
> <mailto:[email protected]>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/bbedit/27B8C6DE-0020-4D34-AC36-63AF805B14E9%40gmail.com
>  
> <https://groups.google.com/d/msgid/bbedit/27B8C6DE-0020-4D34-AC36-63AF805B14E9%40gmail.com?utm_medium=email&utm_source=footer>.

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "[email protected]" rather than 
posting here. Follow @bbedit on Twitter: <https://twitter.com/bbedit>
--- 
You received this message because you are subscribed to the Google Groups 
"BBEdit Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/B5C3FEE4-46BC-420E-86C8-FAECD62D24D2%40gmail.com.

Reply via email to