>I think this should be simple, but I must have been dancing all around >the answer for the last couple of hours. > >I want to match any single occurrence of the character ">" at the >beginning of a line, but want to ignore any occurences where there are >multiple instances of the same character in sequence, like ">>>".
Positional assertions are your friend. ^>(?!>) (?! pattern_here ) is a negative look-ahead assertion, simply meaning 'is not followed by <pattern>'. HTH, James Harvard -- ------------------------------------------------------------------ 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]>
