Hi Marco,
I think this will work.
Find: (.*?) — .*\r+
Replace: \1\r
Hope it helps!
-sam
On 31 May 2017, at 5:05 AM EDT, mrcmrc wrote:
Hi all,
I need some help in order to create a GREP pattern that let me
transform a
text file. In this text file there are a list of glossary terms like
this:
acceptor — A dopant material, such as boron, which has fewer outer
shell
electrons than required in an otherwise balanced crystal structure,
providing a hole, which can accept a free electron.
activated shelf life — The period of time, at a specified
temperature, that
a charged battery can be stored before its capacity falls to an
unusable
level.
activation voltage(s) — The voltage(s) at which a charge controller
will
take action to protect the batteries.
I need to transform in a list like this:
acceptor
activated shelf life
activation volgae(s)
So I need to get only the tems without the long description, each one
separated by a carriage return. As you can see in the original file
each
voice is separated by its description by a " — " and at the end of
each
description there is a carriage return and a blank line.
Any help doing this in BBEdit?
Thanks!
- Marco.
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.
--
This is the BBEdit Talk public discussion group. If you have a
feature request or would like to report a problem, please email
"[email protected]" rather than posting to the group.
Follow @bbedit on Twitter: <http://www.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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/bbedit.