RE: question of regular expression

2004-10-28 Thread Ed Chester
i wrote, obviously with my eyes closed: > s/-x/''/; which of course should be s/-x//; - sorry! ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

RE: question of regular expression

2004-10-28 Thread Ed Chester
> Could anyone let me know by using regular expression, how can I get rid of "-x"? If that's all you really want, and you know that's the only place it can occur, then its no problem to use just s/-x/''/; (substitute '-x' by '') ed c ___ Perl-Win32-U

question of regular expression

2004-10-28 Thread Ella Cai
I have one line like this:   $command = '$ldapsearch -x -LLL -h "cds2.ford.com" -b "ou=People, o=Ford,c=US" "uid=$login" uid fordUNIXid';   If { $command = '$ldapsearch -LLL -h "cds2.ford.com" -b "ou=People, o=Ford,c=US" "uid=$login" uid fordUNIXid'  # which -x need to remove }   Could anyone let

RE: a question of regular expression

2002-09-18 Thread Timothy Johnson
question of regular expression Dear all, I have a line like this: notepad test.txt # This is a test. I want to put seprate the line into two by "#", like var1 = "notepad test.txt" var2 = "This is a test." (I do not want to include # sign) How can I do?

RE: a question of regular expression

2001-10-15 Thread Ember Normand
, October 15, 2001 3:42 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: a question of regular expression I am sorry, I do not make it clear. The code is like: opendir (DIR, $directory) || die "can not open it:$!"; @sub_folders = readdir($directory); can I do something on the seco

RE: a question of regular expression

2001-10-15 Thread Peter Guzis
nt: Monday, October 15, 2001 1:42 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: a question of regular expression I am sorry, I do not make it clear. The code is like: opendir (DIR, $directory) || die "can not open it:$!"; @sub_folders = readdir($directory); can I do something on the

RE: a question of regular expression

2001-10-15 Thread Cai_Lixin
ge- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, October 15, 2001 4:36 PM To: [EMAIL PROTECTED] Subject: a question of regular expression Dear all, I want to open a directory and get all sub folders except "." and "..&qu

a question of regular expression

2001-10-15 Thread Cai_Lixin
Dear all, I want to open a directory and get all sub folders except "." and ".." under directory, how can I do it? Thanks Lixin ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users