Now that I'm in front of a Mac, if I change each \n to \r, as Doug advised,
the regex does indeed work in BBEdit.

(?mx)
(^THIS\ IS\ TRIP\ NUMBER.*\r                   # initial header
 (?:\S.*\r)*                                   # any additional headers
 \r                                            # blank line
 (?:
  (?:[ \t]*\d.*\r)+                            # one or more flights
  [ \t]*-----+.*\r                             # day separator
 )*
 (?:[ \t]*\d.*\r){3}                           # exactly three flights
 [ \t]*\(.*\r                                  # total time
 THE\ CALCULATED\ CREW\ COST.*\r               # final line
)

David, does this work for you?

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 [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.
Follow @bbedit on Twitter: <http://www.twitter.com/bbedit>

Reply via email to