On Tue 30 March 2004, 22:34:01 +1000, Carsten Thönges wrote: <...snip...>
> It's because the pattern doesn't need to match the whole subject. > > This regexp should work: "^(.*?)(?: - .*)?$" Thanks Carsten. It's obvious once you explain it and, of course, it's the detail that is so important. -- Robin Anson Using The Bat! v2.04.7 on Windows XP 5.1 Build 2600 Service Pack 1 ________________________________________________ Current version is 2.04.7 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html