Page 1 of 1
Working with bookmark lines
Posted: Thu Aug 12, 2021 12:49 pm
by JasonGH
Hi,
How can I just simply search and replace on bookmarked lines only, ignoring the rest in a text file?
Thanks
Posted: Thu Aug 12, 2021 6:24 pm
by ben_josephs
Unfortunately you can't do that. But perhaps you can achieve the same thing using a regex. Can you provide details?
Posted: Thu Aug 12, 2021 6:42 pm
by AmigoJack
Ben, as a longtime low priority goal: could "bookmarked lines" be a new search/replace scope? I'd use this to simulate multiple text selections instead of only having one.
Posted: Thu Aug 12, 2021 8:01 pm
by ben_josephs
That's a question for Helios. I'm only an end user.
Posted: Fri Aug 13, 2021 12:26 pm
by AmigoJack
Then I misjudged you for a longer time.
I found
Ability to limit Find/Replace scope to bookmarked lines from 2003-10-26 - if it hasn't been implemented in ~18 years I'm somewhat pessimistic it will ever be.
Posted: Fri Aug 27, 2021 7:14 pm
by JasonGH
Here is the example:
þHeadersþ
þ1þ^þxxxxxxx....
þ2þ1þ^þxxxxxxx....
þxdsfdfd
kalfjadfodl
þ3þ^þxxxxxxx....
þdfdfdsfsdfds
dfasdfdsfsdfds
þ4þ^þxxxxxxx....
....
....
a DAT file with thousands of lines (records) starting from 1 to....Headers can be up to 100 fields separated by þ^þ. Each record should start with þ and a number. For some reasons, some of the field values shifted down extra lines. I want to bring them up. End result should be like this:
þHeadersþ
þ1þ^þxxxxxxx....
þ2þ1þ^þxxxxxxx....
þ3þ^þxxxxxxx....
þ4þ^þxxxxxxx....
Thank you,