delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
From: | "Jonadab the Unsightly One" <jonadab AT bright DOT net> |
Organization: | There is no organisation. |
To: | cygwin AT cygwin DOT com |
Date: | Tue, 26 Jun 2001 21:54:55 -0400 |
MIME-Version: | 1.0 |
Subject: | Re: How to extract suffix from a filename? |
Reply-to: | jonadab AT bright DOT net |
Message-ID: | <3B3904AF.528.280120E@localhost> |
In-reply-to: | <E1B42CFD544FD31193EE0000E87C5CE7E07EE1@mailserver2.mqsoftware.com> |
X-Eric-Conspiracy: | My name is not Eric. |
X-Platform: | Windows '95 OSR2 (heavily adjusted and customised) |
X-mailer: | Pegasus Mail for Win32 (v3.12) |
> Okay, it's a silly question - how can I extract the suffix from > a file name (I know I can use "basename" and "dirname" to get > the file and directory components)? $filename =~ /[.]([^.])$/; $ext = $1; -- jonadab -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |