For example in the first case I would wish to capture the whole line but in the second stop the match before the first '@' character.
I reckon this requires some form of negative lookahead (?=@) but making this lazy and running to the end of the line without an @ present is testing my tired brain.
Running TextPad 5.4 on Windows XP SP3 and on OS X 10.7 under VMWare or Crossover.
That works beautifully in TextPad which is a great starting point. In the application I am using it starts on a new line and then will match over multiple lines until an @ character which may be some lines down.
In my example it would match from '- Some text' through to the @.
I think I always need to limit the search to the end of a line and I'll have a think about how to do this.
Running TextPad 5.4 on Windows XP SP3 and on OS X 10.7 under VMWare or Crossover.