in reply to How to get only files ending with a ,<word>

The \b anchor matches between an alphanumeric character and a non-alphanumeric. If you have /\b,/, that means that the character on the "other side" of the \b (away from the comma) has to be an alphanumeric character. How many filenames do you have that have an alphanumeric character followed by a comma?

Perhaps you wanted /,\w+$/ instead?

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on Re: How to get only files ending with a ,<word>

Replies are listed 'Best First'.
Re^2: How to get only files ending with a ,<word>
by spiritway (Vicar) on Jan 12, 2006 at 06:13 UTC
    How many filenames do you have that have an alphanumeric character followed by a comma?

    I get those with CVS.