Curio. Both suggested Search patterns will also "see" themselves and match 
in the three lines of text below. Why?

1956,ML,Don Newcombe\newcodo01,BRO,4.5,27,7,0,3.06,268.0,139
\\.*?,
\\[^,]+


On Friday, November 13, 2020 at 6:33:34 AM UTC-8 Robin Beech wrote:

> grep search for 
>
> \\[^,]+
>
> and replace with nothing
>
>
> On Friday, November 13, 2020 at 8:27:05 AM UTC-5 Howard wrote:
>
>> I have a dataset with a number of lines of data like this one:
>>
>> *1956,ML,Don Newcombe\newcodo01,BRO,4.5,27,7,0,3.06,268.0,139*
>>
>> In each line, in its third entry (in the above it is *Don 
>> Newcombe\newcodo01*) I want to remove everything from the backslash up 
>> to but not including its ending comma, so for the above line the output 
>> would be this: 
>>
>> *1956,ML,Don Newcombe,BRO,4.5,27,7,0,3.06,268.0,139*
>>
>> How can I do that?
>>
>> Thanks,
>> Howard
>>
>>

-- 
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/d42c68f4-fc62-4d88-a11f-775f85d86ae4n%40googlegroups.com.

Reply via email to