Re: Extract number within parentheses using GREP

2021-06-07 Thread Christopher Stone
On 06/07/2021, at 14:53, Christopher Stone  wrote:This becomes terribly tedious when you do it all by hand, so I wrote you an example Text Factory.Install here:~/Library/Application Support/BBEdit/Text Filters/Text Factories/You have to run it from the Text > Apply Text Filter menu with the target document FRONTMOST.Hey Howard,Oops...  I sent you the wrong Text Factory.  That one works but is less precise than this one.--Take Care,Chris



-- 
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "supp...@barebones.com" rather than posting here. Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/2DFBE0DB-4D49-4C0A-802C-AE09B96D8396%40gmail.com.
<>




-- 
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "supp...@barebones.com" rather than posting here. Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/2DFBE0DB-4D49-4C0A-802C-AE09B96D8396%40gmail.com.


Re: Extract number within parentheses using GREP

2021-06-07 Thread Christopher Stone
On 06/03/2021, at 09:46, Howard  wrote:Chris, what you wrote is very helpful.To get the Grep results not enclosed in parentheses, I used the Replace pattern `\2` with this Search pattern:\d*(\((\d+)\))\d*but that resulted in these numbers:10161011Hey Howard,That can't be right.  If you genuinely got the above result you need to show all your steps.In BBEdit 12 and 13:Source:(10)0(16)500021(10)(11)Find: `\d*(\((\d+)\))\d*`Repl: `\2`Result:10161011The above would be better written this way:Source:(10)0(16)500021(10)(11)Find: `\d*\((\d+)\)\d*`Repl: `\1`Result:10161011To get the output you want add a space to `\1 `You'll get:10161011Follow that up by removing the trailing horizontal whitespace.Find: `\h+$`Repl: nothingThis becomes terribly tedious when you do it all by hand, so I wrote you an example Text Factory.Install here:~/Library/Application Support/BBEdit/Text Filters/Text Factories/You have to run it from the Text > Apply Text Filter menu with the target document FRONTMOST.Give it a keyboard shortcut for convenience in BBEdit's Menus & Shortcuts prefs.Text Factories let you do quite a lot without learning how to write scripts.--Take Care,Chris



-- 
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "supp...@barebones.com" rather than posting here. Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/3480DA58-0FBC-4F72-99EC-9C25C868986E%40gmail.com.
<>




-- 
This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "supp...@barebones.com" rather than posting here. Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bbedit/3480DA58-0FBC-4F72-99EC-9C25C868986E%40gmail.com.


Re: Bullets/Numbering

2021-06-07 Thread Jagrut Sharma
Ah, thank you Greg! That is what I was looking for in terms of applying
bullets.

Regards.
--
Jagrut

On Mon, Jun 7, 2021 at 5:36 AM Greg Raven  wrote:

> It's under Text -> Prefix/Suffix Lines …
>
> On Monday, June 7, 2021 at 5:33:53 AM UTC-7 Jagrut Sharma wrote:
>
>> Hi Greg - That option (i.e. Markup -> Lists ->
>> (Unordered|Ordered)) creates HTML style markup, which would be good to
>> format a HTML document. But for plain text files, I am not sure where the
>> option to define bullets is present.
>>
>> The Test -> Add/Remove line numbers is helpful for numbering.
>>
>> Regards.
>> --
>> Jagrut
>>
>> On Sun, Jun 6, 2021 at 1:54 PM Greg Raven  wrote:
>>
>>> Have you tried selecting the text and then applying Markup -> Lists ->
>>> (Unordered|Ordered) ?
>>>
>>> On Friday, June 4, 2021 at 9:47:49 AM UTC-7 Jagrut Sharma wrote:
>>>
 Hi - Is it possible to select a few items and have bullets/numbering
 applied automatically to them? It is useful after doing a copy-paste from
 some other source.

 Thanks.
 --
 Jagrut

>>> --
>>> This is the BBEdit Talk public discussion group. If you have a feature
>>> request or need technical support, please email "sup...@barebones.com"
>>> rather than posting here. Follow @bbedit on Twitter: <
>>> https://twitter.com/bbedit>
>>> ---
>>> You received this message because you are subscribed to a topic in the
>>> Google Groups "BBEdit Talk" group.
>>> To unsubscribe from this topic, visit
>>> https://groups.google.com/d/topic/bbedit/BbyqrqK_4I4/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> bbedit+un...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/bbedit/ee9ff270-68b2-454a-815d-c0f655af4ce5n%40googlegroups.com
>>> 
>>> .
>>>
>>
>>
>> --
>> Jagrut
>>
>> --
> This is the BBEdit Talk public discussion group. If you have a feature
> request or need technical support, please email "supp...@barebones.com"
> rather than posting here. Follow @bbedit on Twitter: <
> https://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 bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bbedit/6190ddaa-8c7b-4966-957d-3d8defd6fe3cn%40googlegroups.com
> 
> .
>


-- 
Jagrut

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CAJxGxb0DcKVD1bTJYUzSe34qPj0ejm5gzhRrGZ6ouSNjhM9pFg%40mail.gmail.com.


Re: Bullets/Numbering

2021-06-07 Thread Greg Raven
It's under Text -> Prefix/Suffix Lines …

On Monday, June 7, 2021 at 5:33:53 AM UTC-7 Jagrut Sharma wrote:

> Hi Greg - That option (i.e. Markup -> Lists -> 
> (Unordered|Ordered)) creates HTML style markup, which would be good to 
> format a HTML document. But for plain text files, I am not sure where the 
> option to define bullets is present. 
>
> The Test -> Add/Remove line numbers is helpful for numbering.
>
> Regards.
> --
> Jagrut
>
> On Sun, Jun 6, 2021 at 1:54 PM Greg Raven  wrote:
>
>> Have you tried selecting the text and then applying Markup -> Lists -> 
>> (Unordered|Ordered) ?
>>
>> On Friday, June 4, 2021 at 9:47:49 AM UTC-7 Jagrut Sharma wrote:
>>
>>> Hi - Is it possible to select a few items and have bullets/numbering 
>>> applied automatically to them? It is useful after doing a copy-paste from 
>>> some other source. 
>>>
>>> Thanks.
>>> --
>>> Jagrut
>>>
>> -- 
>> This is the BBEdit Talk public discussion group. If you have a feature 
>> request or need technical support, please email "sup...@barebones.com" 
>> rather than posting here. Follow @bbedit on Twitter: <
>> https://twitter.com/bbedit>
>> --- 
>> You received this message because you are subscribed to a topic in the 
>> Google Groups "BBEdit Talk" group.
>> To unsubscribe from this topic, visit 
>> https://groups.google.com/d/topic/bbedit/BbyqrqK_4I4/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to 
>> bbedit+un...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/bbedit/ee9ff270-68b2-454a-815d-c0f655af4ce5n%40googlegroups.com
>>  
>> 
>> .
>>
>
>
> -- 
> Jagrut
>
>

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/6190ddaa-8c7b-4966-957d-3d8defd6fe3cn%40googlegroups.com.


Re: Bullets/Numbering

2021-06-07 Thread Jagrut Sharma
Hi Greg - That option (i.e. Markup -> Lists -> (Unordered|Ordered)) creates
HTML style markup, which would be good to format a HTML document. But for
plain text files, I am not sure where the option to define bullets is
present.

The Test -> Add/Remove line numbers is helpful for numbering.

Regards.
--
Jagrut

On Sun, Jun 6, 2021 at 1:54 PM Greg Raven  wrote:

> Have you tried selecting the text and then applying Markup -> Lists ->
> (Unordered|Ordered) ?
>
> On Friday, June 4, 2021 at 9:47:49 AM UTC-7 Jagrut Sharma wrote:
>
>> Hi - Is it possible to select a few items and have bullets/numbering
>> applied automatically to them? It is useful after doing a copy-paste from
>> some other source.
>>
>> Thanks.
>> --
>> Jagrut
>>
> --
> This is the BBEdit Talk public discussion group. If you have a feature
> request or need technical support, please email "supp...@barebones.com"
> rather than posting here. Follow @bbedit on Twitter: <
> https://twitter.com/bbedit>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BBEdit Talk" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/bbedit/BbyqrqK_4I4/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> bbedit+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bbedit/ee9ff270-68b2-454a-815d-c0f655af4ce5n%40googlegroups.com
> 
> .
>


-- 
Jagrut

-- 
This is the BBEdit Talk public discussion group. If you have a feature request 
or need technical support, please email "supp...@barebones.com" rather than 
posting here. Follow @bbedit on Twitter: 
--- 
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 bbedit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CAJxGxb3dRwDr4-DT%3DVw029oJxjBzDJB4c0d5kboSVEbf4qS_iw%40mail.gmail.com.