If we're golfing, why not:
Find: .*\.
Replace:
(Note that there's a space at the end of the find pattern and the
replacement string is empty.)
Hope this helps!
-sam
On 28 Aug 2017, at 9:47 AM EDT, Jim Danner wrote:
Or, if there's a chance that the text after the last period-and-space
will
itself contain a space,
find
^.*\. ([^.]+)$
and replace it with \1
(It finds 'stuff that does not contain any periods' after a
period-and-space.)
On Monday, August 28, 2017 at 3:24:57 PM UTC+2, T Burger wrote:
Find = ^.* (.*)$
Replace = \1
Thanks,
Ted
*********************** Ted Burger ****************************
[email protected] <javascript:> *********
www.tobsupport.com
On Aug 27, 2017, at 12:19 AM, Jasyn Jones <[email protected]
<javascript:>>
wrote:
I have a text file with 2000 lines of text similar to this:
baba /baˈba/ nm. mother
bats /bats/ nf. test; v. test
bei /bei/ v. keep
What I want to do is to find and replace everything up to and
including
the last period & space, on every line, so the output would look
like:
mother
test
keep
I've tried various grep patterns, can't get any to work. Any
suggestion
would be appreciated.
--
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] <javascript:>" 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] <javascript:>.
To post to this group, send email to [email protected]
<javascript:>
.
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.
--
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.