On 02/12/2021, at 06:07, @lbutlr <[email protected] <mailto:[email protected]>> wrote: > > I seem to be having a Brain Cloud¹ moment, but I am trying to match a pattern > like this: > > foo+(anything)# or foo# and NOT match > > foobar# > foobar+(anything)# > foob# > foob+(anything)# > etc > > foo+# is invalid and cannot occur in my dataset. > > Basically, the + is optional, but if it is there, I have to account for > anything after the + up to the # but not account for anything after foo > unless the + is there.
Something like this? foo#|foo\+.+?# -Chris -- 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/DF9BB7A5-1A26-45A1-974F-05E1C6B81D5E%40gmail.com.
