Previous Thread
Next Thread
Print Thread
Rate Thread
#102649 09/15/2005 8:40 AM
Joined: Sep 2005
Posts: 1
Junior Member
Junior Member
Offline
Joined: Sep 2005
Posts: 1
May be this looks a bit more appropriate

my $str = "drwx------ 3 anpatel students 512 Apr 18 14:45 Really Bad Name Name for a file.";

$str =~ s/(S)s/$1/; #1 perms-links
$str =~ s/(S)s/$1/; #2 links-user
$str =~ s/(S)s/$1/; #3 user-grp
$str =~ s/(S)s/$1/; #4 grp-apr
$str =~ s/(S)s/$1/; #5 apr-date
$str =~ s/(S)s/$1/; #6 date-time
$str =~ s/(S)s/$1/; #7 time-filename
$str =~ s/^(S+)s+(.*)/$2/; # remove all the things that were combined previously. result is we get the file name!
print $str,"n";

Sponsored Links
Entire Thread
Subject Posted By Posted
Regular Expressions HelloWorld 04/22/2001 7:57 AM
Re: Regular Expressions Mark Badolato 04/22/2001 8:31 AM
Re: Regular Expressions HelloWorld 04/22/2001 8:46 PM
Re: Regular Expressions HelloWorld 04/22/2001 8:58 PM
Re: Regular Expressions Dave_L 04/23/2001 1:15 AM
Re: Regular Expressions HelloWorld 04/23/2001 3:27 AM
Re: Regular Expressions HelloWorld 04/23/2001 4:01 AM
Re: Regular Expressions AllenAyres 05/09/2005 8:24 AM
Re: Regular Expressions AllenAyres 05/09/2005 9:48 PM
Re: Regular Expressions Burak 05/09/2005 10:10 PM
Re: Regular Expressions AllenAyres 05/09/2005 10:34 PM
Re: Regular Expressions Burak 05/09/2005 10:48 PM
Re: Regular Expressions AllenAyres 05/09/2005 11:16 PM
Re: Regular Expressions Burak 05/10/2005 12:07 AM
Re: Regular Expressions AllenAyres 05/10/2005 8:16 AM
Re: Regular Expressions Burak 05/10/2005 1:52 PM
Re: Regular Expressions AllenAyres 05/10/2005 3:16 PM
Re: Regular Expressions Burak 05/10/2005 3:52 PM
Re: Regular Expressions Burak 05/10/2005 3:57 PM
Re: Regular Expressions AllenAyres 05/10/2005 6:18 PM
Re: Regular Expressions BLESSY JOSE 09/15/2005 3:40 PM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
JAISP
JAISP
PA
Posts: 449
Joined: February 2008
Forum Statistics
Forums63
Topics37,573
Posts293,925
Members13,849
Most Online5,166
Sep 15th, 2019
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,833
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2024 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20221218)