Mohannad

A very useful site for testing regex is regex101. And you can save and copy
a test page and it will be there for ever! I put Greg's suggestion here:

https://regex101.com/r/0zaNkG/12

On Thu, 27 Feb 2020 at 16:10, Mohannad Mahmoud <[email protected]>
wrote:

> Will check it, hope it works
>
> Thanks a lot
>
> On Thursday, February 27, 2020 at 5:45:40 PM UTC+2, Greg Raven wrote:
>>
>> Does this work for you?
>>
>> \A.*?\n.*?\n.*?\n.*?\n.*?\n
>>
>> On Thursday, February 27, 2020 at 5:33:45 AM UTC-8, Mohannad Mahmoud
>> wrote:
>>>
>>> Hello to all,
>>>
>>> I am trying to copy a search pattern to a new document. I am not sure
>>> this can be done in Canonize or Processing Lines Containing
>>>
>>> The file I am doing a search in has the following;
>>>
>>> 3/004
>>> 03:00:19:18 0041+10
>>> 03:00:23:10 0047+02
>>> 03:16 5+08
>>> Mrs Nora? Forgive me.
>>> (Intenral)
>>> Thomas: Well...
>>> ENTERS DOOR
>>> DIANA (OS): Forgive
>>> 5 03:00:21:14 0044+06
>>> CUT TO MS - PM DIANA L
>>> DIANA: my interruption. Sir Eric Gairy, the Prime Minister of Grenada.
>>>
>>> I need to only copy the first 5 lines;
>>> 3/004
>>> 03:00:19:18 0041+10
>>> 03:00:23:10 0047+02
>>> 03:16 5+08
>>> Mrs Nora? Forgive me.
>>>
>>> The search patter I am using is;
>>>
>>> (3/[0-9]*\r[0-9]{2}:[0-9]{2}:[0-9]{2}:[0-9]{2}\s[0-9]{4}\+[0-9]{2}\r[0-9]{2}:[0-9]{2}:[0-9]{2}:[0-9]{2}\s[0-9]{4}\+[0-9]{2}\r[0-9]{2}:[0-9][0-9]\s[0-9]\+[0-9]{2}\r^.*$)
>>>
>>> Which is working fine in the classic search and replace function but not
>>> in canonize and process line containing
>>>
>>> I do not have a coding background, I would appreciate your help guys
>>> Many thanks
>>>
>> --
> 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 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bbedit/a8c81bd1-a765-4269-b2ff-9af2826f57af%40googlegroups.com
> <https://groups.google.com/d/msgid/bbedit/a8c81bd1-a765-4269-b2ff-9af2826f57af%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Kaveh Bazargan PhD
Director
River Valley Technologies <http://rivervalleytechnologies.com/> • Twitter
<https://twitter.com/kaveh1000> • LinkedIn
<https://www.linkedin.com/in/bazargankaveh/>

-- 
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 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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/bbedit/CAJ2R9phk%2B0iTUt3AWtst%2BVm%2BvnczRCsA3ocDosk6PQ0XC8ztjw%40mail.gmail.com.

Reply via email to