But that pattern already finds lines ending with a question mark… > On 2020-10-07, at 15:26, Howard <leadwithlo...@gmail.com> wrote: > > How can I revise the pattern below so that I can also find all the lines that > end with a question mark? > > Pattern: ^.*From (.*?) :.*$ > Replace: \1
If you mean only a question mark, then you have to ‘escape’ the question mark in the pattern with a backslash: ^.*From (.*?) :.*\?$ Cheers -- 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/9B2E4700-23F7-474F-BC73-6562D885DF17%40gmail.com.