Jack,
I think you want - but make sure case sensitive is turned on...
^(.*?)(?=[A-Z]{1}[a-z]{1})
Matches from start of line, zero or more characters until you get a
positive lookahead for a member of A-Z followed by a member of a-z...
R
On 9 Feb 2007, at 13:18, Jack Hodgson wrote:
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.
I used to have this pattern stored in my grep patterns, but
upgrading to a later version of bbedit seems to have deleted these.
Help.
Thanks in advance.
-- Jack Hodgson
--
------------------------------------------------------------------
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]>
--
Richard Dyce MA (Cantab.) MBCS MIET
http://www.macuser.co.uk
http://www.macworld.co.uk
--
------------------------------------------------------------------
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]>