Re: Noob trying to improve on these grep / expressions

2018-12-31 Thread Mike Pasini
Yes, Perl is installed on OS X and you can extend its functionality with modules like the one I mentioned. But you do have to write code to create a BBEdit Text Filter (although not much more than what the module's example shows). You can find the Apple Text Filter option under the Text menu ite

Re: Noob trying to improve on these grep / expressions

2018-12-31 Thread Christopher Stone
On 12/31/2018, at 13:54, Dj mailto:futurevint...@gmail.com>> wrote: > Mike, that makes a lot more sense now. I looked at page for the Module and it > seems it's run from terminal and OSX has perl pre-installed? Hey Dj, BBEdit can run shell scripts as Text-Filters, and they do not need to be run

Re: Noob trying to improve on these grep / expressions

2018-12-31 Thread Christopher Stone
On 12/31/2018, at 13:49, Dj mailto:futurevint...@gmail.com>> wrote: > can I ask where you ran that expression in BBedit? Just menu ---> search > > find. Hey Dj, Beginning around v11.0 BBEdit has had an “Extract” button in the Find dialog. Find: \b\w[^.!]+?\? Replace: Nothing Using

Re: Noob trying to improve on these grep / expressions

2018-12-31 Thread Dj
Mike, that makes a lot more sense now. I looked at page for the Module and it seems it's run from terminal and OSX has perl pre-installed? Or is it a "module" than can be run somehow from within BBedit? Thanks for the patience, I'm not really a programmer, just want to look at questions posed

Re: Noob trying to improve on these grep / expressions

2018-12-31 Thread Dj
Hi, can I ask where you ran that expression in BBedit? Just menu ---> search > find. Find menu: Find: ([^\.]+?\?) Replace: \1\n Grep checked and then click replace all? It looks like the output is getting me closer to what I want, but running it on a huge block of text I'm still get

Re: Noob trying to improve on these grep / expressions

2018-12-31 Thread Mike Pasini
Dj, Process Lines processes *lines* not sentences. So any paragraph that has a sentence with a question mark in it would match searches for strings with question marks. Identifying a sentence is not a simple task. But there's a Perl module to help

Re: Noob trying to improve on these grep / expressions

2018-12-31 Thread ThePorgie
I ran this expression on your text: ([^\.]+?\?) with the replace: \1\n extracted to: —Eskimo proverb What can be added to the happiness of man who is in health, out of debt, and has a clear conscience? —Adam Smith Do you prefer that you be right, or that you be happy? What am I doing right?