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.
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).
--
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.