On 01/04/2019, at 20:59, Dj <[email protected] 
<mailto:[email protected]>> wrote:
> The last couple things I'm curious about before doing a deeper dive... To 
> remove all text between paranthesis (and also the parenthesis), what would 
> that expression be? 


Hey Dj,

Something like this:

\([^)]+\)

1. Literal open Paren.
2. Any character not close Paren, 1 or more
3. Literal close Paren

> How about only extracting the last sentence of each paragraph?   No biggie, 
> if that's asking too much, appreciate the time you've given here.

Something like this:

(?<=\A|[.?!]|\v)[^.?!\v]+[.?!](?=\v|\z)

(?<=\A|[.?!]|\v)  ==  Positive Lookbehind for Start of Text, End Punctuation, 
or Vertical Whitespace.
[^.?!\v]+         ==  Any character NOT end punctuation or vertical whitespace, 
1 or more.
[.?!]             ==  End punctuation.
(?=\v|\z)         ==  Positive Lookahead for vertical whitespace or End of Text.

This is unsophisticated, because there is no provision for possible quoting.

But it'll do for now.  :)

--
Best Regards,
Chris

-- 
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 to the group.
Follow @bbedit on Twitter: <https://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.

Reply via email to