Em 2/9/07 11:18 AM, "Jack Hodgson" <[EMAIL PROTECTED]> escreveu:
> I have a file filled with lines of text. I need a grep pattern which > will match from the start of the line, to the first uppercase letter > which is followed by a lowercase letter. Richard Dyce already gave you the correct answer. I will just add that a (?-i) flag forces the pattern to be case sensitive, regardless of the state of the "Case Sensitive" checkbox. Therefore, the pattern can also be written as: ^(?-i)(.*?)(?=[A-Z][a-z]) João Carlos de Pinho São Paulo, Brazil -- ------------------------------------------------------------------ Have a feature request? Not sure the software's working correctly? If so, please send mail to <[EMAIL PROTECTED]>, not to the list. List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml> List archives: <http://www.listsearch.com/BBEditTalk.lasso> To unsubscribe, send mail to: <[EMAIL PROTECTED]>