Hi Chris,   

 Learning about something new I find it's often the entry point that's most 
problematic, then it's just easier to go to whatever the next logical step 
is. Months ago, I was coming at this from the angle that I'd have to learn 
R or Python to do what I wanted for a big idea. Ha. Your help with 
extracting questions from my journal made me realize that I can apply this 
to a bigger vision project I have that will hopefully help some people out 
and let me pay it forward. Can't thank you enough! I keep getting too many 
ideas for long-standing issues I've had with edting text though. :)

On Saturday, January 5, 2019 at 12:09:35 PM UTC-8, Christopher Stone wrote:
>
> On 01/04/2019, at 20:59, Dj <[email protected] <javascript:>> 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