grep -RP "@(due|next(-week| month)).+(?!@done)" path > search_results.txt
Should find all of them, but only if you have gnu grep with PCRE support. On Monday, October 27, 2014 4:53:57 AM UTC-4, mmb21...@gmail.com wrote: > > > Using grep works but only one search at a time because of my limited > knowledge of regexp ! > > How do I do a regexp search with multiple finds but excluding certain > patterns so for example in Perl I can do > > print if (/^.*\@thisweek(?!.*\@done).*/); > print if (/^.*\@nextweek(?!.*\@done).*/); etc > > Not great as would rather do it in one pattern, but it does return what I > want. > > So Ideally I want to find all lines with '@due' OR '@next-week' OR '@next > month' but NOT @done > > Cant understand why a multi file search using text factory in BBE won't > allow the results to go into a new window. > > Thanks. > --- > Mark > > -- This is the BBEdit Talk public discussion group. If you have a feature request or would like to report a problem, please email "supp...@barebones.com" rather than posting to the group. Follow @bbedit on Twitter: <http://www.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 post to this group, send email to bbedit@googlegroups.com.