Re: Grep for everything between two tags?

2018-08-14 Thread Jerry Nilson
Thanks! On Monday, August 13, 2018 at 7:01:21 PM UTC+2, Patrick Woolsey wrote: > > On 8/13/18 at 11:27 AM, jerry@gmail.com (Jerry Nilson) > wrote: > > >Cannot figure out (new to this) how to write a grep search to match: > > > > > >Where I want to substitute all similar lines with: > >

Re: Grep for everything between two tags?

2018-08-13 Thread Patrick Woolsey
On 8/13/18 at 11:27 AM, jerry.nil...@gmail.com (Jerry Nilson) wrote: Cannot figure out (new to this) how to write a grep search to match: Where I want to substitute all similar lines with: Thought I could write: .* or possibly with a ? after, but seems I may need more escape characters

Re: Grep for everything between two tags?

2018-08-13 Thread Jerry Nilson
You are right!  I bloody well tried exactly that too, but maybe I had not selected the whole row when applying to "selected text" only (as I did not see the full row on my computer ...). Now it of course worked right away! Tried to fix a kmz file exported from a Google map, that mishandles the

Re: Grep for everything between two tags?

2018-08-13 Thread Sam Hathaway
`.*?` worked for me with your sample line. -sam On 13 Aug 2018, at 11:27, Jerry Nilson wrote: Hi, Cannot figure out (new to this) how to write a grep search to match: Where I want to substitute all similar lines with: Thought I could write: .* or possibly with a ?

Grep for everything between two tags?

2018-08-13 Thread Jerry Nilson
Hi, Cannot figure out (new to this) how to write a grep search to match: Where I want to substitute all similar lines with: Thought I could write: .* or possibly with a ? after, but seems I may need more escape characters here because some of the characters to be