Hi Tim You are right that in BBEdit both escaped and unescaped versions worked. I was sloppy and escaped just one. So nothing magical, just being inconsistent!!
But I believe that in other environments, e.g. other programming languages, you sometimes need to escape. I think sometime with \" and sometimes "" Others will chime in as my knowledge is limited here... :-) Regards Kaveh On Sat, 28 Oct 2023 at 04:09, Tim A <[email protected]> wrote: > Looking to learn something here. Kaveh suggests: > Search: (.+\"ERROR".+)\r(.+)\r(.+)\r(.+) > > Why is a single quote around ERROR escaped here? I find any of these > search patterns work ... > \"ERROR" as above; > \"ERROR\" > "ERROR" > > On Wednesday, October 25, 2023 at 12:02:07 PM UTC-7 Kaveh Bazargan wrote: > >> Will this work? >> >> Search: >> (.+\"ERROR".+)\r(.+)\r(.+)\r(.+) >> Replace: >> \1\2\3\4 >> >> Then press extract. Should give you a new file with the result. I see you >> have commas on all the lines anyway, so just removing the return >> >> On Wed, 25 Oct 2023 at 18:41, Ross Madia <[email protected]> wrote: >> >>> >>> See picture attached. >>> I have a log file (text format) that has thousands of lines. >>> I'm looking to extract 4 lines where the word "ERROR" appears. >>> HELP???[image: ExtractLines.jpg] >>> >>> -- >>> 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/7f38d17e-35d2-41d9-b499-4ab28980e6e5n%40googlegroups.com >>> <https://groups.google.com/d/msgid/bbedit/7f38d17e-35d2-41d9-b499-4ab28980e6e5n%40googlegroups.com?utm_medium=email&utm_source=footer> >>> . >>> >> >> >> -- >> Kaveh Bazargan PhD >> Director >> River Valley Technologies <http://rivervalley.io> ● Twitter >> <https://twitter.com/rivervalley1000> ● LinkedIn >> <https://www.linkedin.com/in/bazargankaveh/> ● ORCID >> <https://orcid.org/0000-0002-1414-9098> ● @[email protected] >> <https://mastodon.social/@kaveh1000> >> *Accelerating the Communication of Research* >> >> * >> <https://www.linkedin.com/posts/bazargankaveh_ismte-innovation-award-recipient-kaveh-bazargan-activity-7039348552526921728-XAEB/?utm_source=share&utm_medium=member_desktop> >> [image: >> https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/] >> <https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/>* >> > -- > 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/a05d5a84-fed0-43c2-b2d7-d22496d9505dn%40googlegroups.com > <https://groups.google.com/d/msgid/bbedit/a05d5a84-fed0-43c2-b2d7-d22496d9505dn%40googlegroups.com?utm_medium=email&utm_source=footer> > . > -- Kaveh Bazargan PhD Director River Valley Technologies <http://rivervalley.io> ● Twitter <https://twitter.com/rivervalley1000> ● LinkedIn <https://www.linkedin.com/in/bazargankaveh/> ● ORCID <https://orcid.org/0000-0002-1414-9098> ● @[email protected] <https://mastodon.social/@kaveh1000> *Accelerating the Communication of Research* * <https://www.linkedin.com/posts/bazargankaveh_ismte-innovation-award-recipient-kaveh-bazargan-activity-7039348552526921728-XAEB/?utm_source=share&utm_medium=member_desktop> [image: https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/] <https://rivervalley.io/gigabyte-wins-the-alpsp-scholarly-publishing-innovation-award-using-river-valleys-publishing-technology/>* -- 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/CAJ2R9phdSggFqcP%3DERtQp7TEu4i5DT3ZpQ36SWT6Smq%2BwefAXw%40mail.gmail.com.
