On Thu, Jun 12, 2008 at 2:34 PM, Noli Rafallo <[EMAIL PROTECTED]> wrote: > I guess I haven't stated my question clearly, my fault. Though your sample > pattern matches both sample expression, it also matches expression such as > ABC123-123asdf.
That's because there was no zero-width assertion. Try appending \b to match a word boundary or \Z to match at end of string (before newline). HTH _________________________________________________ Philippine Linux Users' Group (PLUG) Mailing List http://lists.linux.org.ph/mailman/listinfo/plug Searchable Archives: http://archives.free.net.ph

