That looks like
foo(\+.*?)?#
(Using .*? instead of .* ensures that if you have a line like "foo+bar# foo+mung#", it will match two occurrences, "foo+bar#" and "foo+mung#", rather than a single occurrence with foo followed by the string "bar# foo+mung" followed by #.
Regards,
Neil Faiman
> --
> This is the BBEdit Talk public discussion group. If you have a feature request or need technical support, please email "
sup...@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+un...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/bbedit/82052BB3-5773-4E7C-9E6D-6894047AE2F8%40kreme.com.