On Sat, May 22, 2010 at 01:28:36PM -0700, Bill Rowe wrote: > On 5/22/10 at 12:15 PM, gabe.r...@gmail.com (Gabriel Roth) wrote: > > >Is there a grep special character that matches any character > >including a line break? I find myself using (\s|\S) and suspect that > >there must be a shorter way.
[\s\S] is a shorter by a whole character... :D > From the grep reference in BBEdit Help menu > > s -- By default, the magic dot metacharacter . matches any > character except return ("\r"). If you turn this option on with > (?s) , however, dot will match any character. Thus, the pattern > (?s).+ will match an entire document. > > So, the pattern to match any single character including line > breaks would be (?s). And (?s:.) is useful if you only want to change the meaning of . in part of the pattern. Ronald -- 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 bbedit@googlegroups.com To unsubscribe from this group, send email to bbedit+unsubscr...@googlegroups.com 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 "supp...@barebones.com" rather than posting to the group.