Tim A wrote on 2021-09-09 5:57 PM:
> Just when I think I am making progress understanding regular
expressions ...
> This surely works, but I see it as attempting a match of just three
characters - a non return followed by a return followed by another non
return. Can you offer some insight why it does work?
On Sep 9, 2021, at 6:29 PM, Bruce Van Allen <[email protected]>
>> Does it work? Not over here,
I was wrong.
Here's what happens:
Find: ([^\r])\r([^\r])
Replace: \1 ** \2
Using Replace All, it goes through steps
Starting:
Peter Frost
25:34
yes
Here it finds the last 't' in Frost, the return following that, and the
'2' that starts the next line, yielding:
Peter Frost ** 25:34
yes
Then it finds the '4' in 25:34, the return after that, and the 'y' that
starts the next line.
Bingo:
Peter Frost ** 25:34 ** yes
Kerri's method was correct!
--
- Bruce
_bruce__van_allen__santa_cruz__ca_
--
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/fab1cd56-7d23-fdd3-6101-db9a5e012bac%40cruzio.com.