Mike, This will find all strings that meet the following criteria.
SEARCH : <\?lassoscript[^\?]+\?> Can be broken down to three pieces : ( 1 ) <\?lassoscript ( 2 ) [^\?]+ ( 3 ) \?> will find anything that : (ignore the quotes) ( 1 ) look for a string of characters that starts with "<?lassoscript" ( 2 ) follow that string with any number of characters, as long as they are NOT a question mark "?" ( 3 ) ending with "?>" If you want ONLY the specific string below, then we can narrow the search. I couldn't tell from your question if you wanted to find only strings that were IDENTICAL to what you had, or whether you wanted strings that followed the same pattern (i.e. similar). If you provide more info we can try to help... Best Regards, Bill Hernandez Plano, Texas On Dec 11, 2009, at 1:11 PM, Mike E wrote: > Hello, > > I'm trying to do a find and replace. The following is what I'm trying > to find: > > <?lassoscript > var: 'header' = @$__http_header__; > $header += 'Expires: Mon, 26 Jul 1997 05:00:00 GMT\r\n'; > $header += 'Last-Modified: ' + (date_localtogmt: (date))->(format: > '%a, %d %b %Y %H:%M:%S GMT') + '\r\n'; > $header += 'Cache-Control: no-store, no-cache, must-revalidate\r\n'; > $header += 'Cache-Control: post-check=0, pre-check=0\r\n'; > $header += 'Pragma: no-cache\r\n'; > ?> > > Can somebody help me write a query that will find the above? I'm not > having any luck? > > Much thanks in advance. > > Mike -- You received this message because you are subscribed to the "BBEdit Talk" discussion group on Google Groups. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/bbedit?hl=en If you have a feature request or would like to report a problem, please email "[email protected]" rather than posting to the group.
