From: David Alan Black Date: 2002-08-05T11:46:28+09:00 Subject: Re: Regex question Hi -- On Mon, 5 Aug 2002, Jim Freeze wrote: > On Mon, Aug 05, 2002 at 11:37:12AM +0900, David Alan Black wrote: > > > > Try this: > > > > /\.[^.]*$/ > > > > which forces the match to start at the right-most '.' on the line. > > > or this: > > /\w+$/ (You forgot the \. :-) \w will cover the example given, though I was generalizing a bit: matching the post-last-dot part of any line. David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav