On Mon, 26 Apr 2004, Ryan Bowman wrote:
> I need a regular expression that will only match filenames with NO periods
> in them. My attempts so far don't seem to work at all, in the least. Can
> someone give me a hint, please?
This will match an entire string iff it has no periods:
/^([^.]+)$/
You could also just look for periods and reject anything that matches:
/\./
-J
____________________
BYU Unix Users Group
http://uug.byu.edu/
___________________________________________________________________
List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list