On Wed, 2013-10-16 at 11:47 -0400, Bowie Bailey wrote: > I'm not quite sure what you were intending to match. > On more mature reflection, neither am I! I should have said:
/^\s{0,80}\S{0,20}\s{0,80}$/ which should catch messages of 20 characters or less. I was in a hurry (quite a bit of C to write) and somewhat thrown by the OP saying he wanted to catch single word messages but showed us a two word example. Martin