In many (not all) of the row items in my text file, there are two carriage returns. One appears after 'NYM,,,,,' while the other appears at the item's end. In those items with two carriage returns, how can I remove everything after 'NYM,,,,,' which ends with a carriage return?
Note: Rows 1-3 below have the problem. Rows 4-5 do not. 1,Tom Seaver\seaveto01,60,Ind. Games,42,10,.808,1.42,60,42,17,0,533.0,308,90 ,84,31,113,699,0.79,18,12,18.0,,,NYM,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 2,Dwight Gooden\goodedw01,46,Ind. Games,32,6,.842,1.54,46,22,10,0,385.1,243, 72,66,18,101,521,0.89,53,16,11.2,,,NYM,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 3,Jacob deGrom\degroja01,41,Ind. Games,19,7,.731,1.77,41,0,0,0,284.1,184,64, 56,16,66,447,0.88,25,9,7.8,1336.35,1905.33,NYM,,,,, ,,,,,,,,,,,,,,,,,,,,,,,,,,,,,, 4,Dick Selma\selmadi01,2,Ind. Games,1,1,.500,2.12,2,1,1,0,17.0,10,4,4,1,3,23 ,0.76,1,2,0.6,,,NYM,,,,, 5,Ray Sadecki\sadecra01,2,Ind. Games,1,1,.500,2.20,2,1,0,0,16.1,14,4,4,0,4, 22,1.10,0,0,0.3,,,NYM,,,,, -- 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/5ec48e51-99d2-4045-9f84-5bbcfc00a5e8o%40googlegroups.com.
