Re: another reg needed

2002-08-18 Thread Dharmendra Rai
well i think the following is general @my_array = /(\d+)/g ; # is much much better. thanx - Get a bigger mailbox -- choose a size that fits your needs. http://uk.docs.yahoo.com/mail_storage.html

Re: how to do this?

2002-08-18 Thread John W. Krahn
Javeed Sar wrote: > > Hi All, Hello, > I have a folder, this folder REMARK, this folder should have only one file > with filextension .DSP or .VBP.only one file should exist, if it is not > there we can add that file to folder. > it already exist it should not add the file, it should come out

how to do this?

2002-08-18 Thread Javeed SAR
Hi All, I have a folder, this folder REMARK, this folder should have only one file with filextension .DSP or .VBP.only one file should exist, if it is not there we can add that file to folder. it already exist it should not add the file, it should come out with error "proj exist". i.e folder

Re: How do you print 'C:\' ?

2002-08-18 Thread perl-Krackedpress
"\" {slash} is one of the special {reserved} characters like "." , ";" , and many others. All these special {reserved} characters need the "\" symbol to process it to be able to be viewed www.hostingelmira.com\testdir\test.html would equal www\.hostingelmira\.com\\testdir\\test\.html Check

Re: How do you print 'C:\' ?

2002-08-18 Thread Connie Chan
[...] > backslash (else how would you embed a '?) > [...] Ooo... right!! Thaz the point, Thanks alot =) Rgds, Connie -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: How do you print 'C:\' ?

2002-08-18 Thread Tanton Gibbs
A single quoted string does not do backslash substitution EXCEPT if the backslash preceeds a single quote or another backslash (else how would you embed a '?) Therefore, print 'C : \' doesn't work because the \' is taken as an embedded ' instead of two characters. Therefore, you have to escape y

How do you print 'C:\' ?

2002-08-18 Thread Connie Chan
I wonder why ... I can't write a line like this : print 'C : \ '; but have to : print 'C : \ \ '; however, I can : print 'C:\A_Dir\B_SubDir'; The last ' is escaped, why ?? Rgds, Connie -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: how to make a regex for a ip address

2002-08-18 Thread Connie Chan
Emmm... So do you want to do it in 1 line or your just want to try on ? For me, it seems quite non-effective & impossible with one line... but breaking them into pieces, that becomes handy. I use this : my $ip = $ENV{REMOTE_ADDR}; my $error = 0; my @seg = split /\./, $ip; $error = 1 unless ($

Re: Have you followed the Open Source Community???? was Re: Tom Clancy, to David Perkins

2002-08-18 Thread Felix Geerinckx
on Sun, 18 Aug 2002 19:36:38 GMT, Drieux wrote: > What you will also observe here is that various persons on > this list engage in the dangerous practice of "confirming" > various types of speculation with the intent to do damage > to our intelligence and foreign service community. Huh? Another

RE: how to make a regex for a ip address

2002-08-18 Thread Timothy Johnson
Just in case you have trouble understanding some of the examples given, I'll through out a starter regex and you can see how the process kind of works. my $ip = $ARGV[0]; my $badoctet = 0; if($ip =~ /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/){ for($1,$2,$3,$4){ #right format so

Have you followed the Open Source Community???? was Re: Tom Clancy, to David Perkins

2002-08-18 Thread drieux
On Sunday, August 18, 2002, at 11:21 , irish wrote: [..] > Clancy claims that his sources are "open source" in all his works and > based on > documented fact reworked to include additional research he has supposedly > done. [..] given that NIS was concerned that specific details, now common kn

Re: how to make a regex for a ip address

2002-08-18 Thread perl-Krackedpress
I hope you have a good REF. for regex commands O'Reilly's series book is the best I am told. I do not have one for the IP address but I have email, zipcode, and phone Here are the strings for regex for the following // check the email fields for validity "^[_\.0-9a-z-]+@([0-9a-z][0-9a

Re: how to make a regex for a ip address

2002-08-18 Thread Janek Schleicher
Alex Chen wrote at Sun, 18 Aug 2002 17:14:21 +0200: > i am a beginners in perl.i am studying perl regex now ,and i want to know > how to make a regex for a ip address. Have a look to the Regexp::Common module from the CPAN. $RE{net}{IPv4} contains the regexp to match an ip address. Best Wis

how to make a regex for a ip address

2002-08-18 Thread alex chen
hi, i am a beginners in perl.i am studying perl regex now ,and i want to know how to make a regex for a ip address. thank you!! -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Help!! Retrieving Image File

2002-08-18 Thread zentara
On Sat, 17 Aug 2002 19:28:08 +0800, [EMAIL PROTECTED] (Archie) wrote: >Here is the code, when i am executing this code in the browser, it prompts >"The browser contains no data." >I followed your suggestion to put \r\n\r\n in the print content-type line >and nothings happen, still the same, >no i