@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet


Comments:

<0> hello all
<0> I am a newbie and i just want to create some simple forms to store in a mysql datbase.. are there any gui tools
<1> ???
<2> i have no idea about perl, and i need to use regex to validate date and e-mail...
<2> where can i find some regex?
<3> hi help pls :o
<3> ok



<3> i didnt ask to ask -.-
<3> after installing activeperl.. how to run a perl script? i still havent figured that out :o
<4> From the command prompt: perl myscript.pl
<4> If you're using it for CGI scripts then you'll need to set up a webserver service (IIS or Apache).
<3> oh
<4> email: unless($EmailAddy=~/\w+@\w+\..*/) { #email is iinvalid }
<4> Date is more difficult because it depends on the format used, e.g. /\d{2}\/\d{2}\/\d{4}/
<3> why ty
<4> np
<3> its like regex ;p
<4> I was responding to <2> i have no idea about perl, and i need to use regex to validate date and e-mail...
<4> Before you arrived, I see.
<2> thx
<4> np
<3> u were saying from the command prompt right..
<3> u mean the perl.ex
<3> that is in the \bin ?
<4> uh-huh ... It's normally in C:\Perl\bin\perl.exe but you can just use "perl" as it maps itself to the console when it's installed.
<3> ic
<3> not wokring :(
<3> i write "perl filename.pl"
<3> and it does nothing
<5> \w only matchs A-Z, a-z, 0-9 and _
<5> if ($foo =~ /^\w+[\.\w\-]+\@[\.\w\-]+\.[\w\-]+$/) { #match! }
<4> Yes, bigcow, there are no spaces in email addresses. Mind you, some do have periods, I suppose.
<4> Also didn't know that the @ needs to be escaped.
<5> :/



<5> now i have problem about ecommerce :/
<4> Hey, we can't even use paypal here in South Africa :(
<5> planning to develope some site, something like the amazon.com
<5> and i didnt know paypal cant be use in S.Africa
<6> Wow, that looks like a bad attempt at matching an email address!
<2> buu, can you help me with that?
<6> Mr_Eko: Yes. don't do it.
<6> Your best bet is probably: /@/
<2> how can i validate an e-mail address
<2> ?
<6> Mr_Eko: By sending an email to it and waiting for a valid reply.
<2> hmm... i know, but i need to put it on the client-side, so it checks at least if the structure is valid.
<6> Then, um, how are you using perl.. client side?
<2> javascript
<6> Mr_Eko: This may be confusing to you, but perl is not javascript.
<2> it uses regex
<6> They are in fact, completely seperate.
<6> Mr_Eko: It uses *javascript* regexes.
<6> And more to the point, all your regex should really do is check for an at sign. That's about all you can legally do.
<2> hmm...
<2> but, what about spaces and domains?
<6> What about them?
<6> Mr_Eko: Look, it all boils down to this. If they want you to send them email, they'll make sure they put the correct email address in.
<2> there can't be a space con a mail address
<2> hmm... ok
<2> so, you're telling me that /@/ will check if the at symbol is present
<6> "Proper Name" <email@address.com>
<4> The javascript is: re = /.*@.*/; var IsValid=re.exec; if(IsValid) {
<4> Quite different to running the same regex in Perl.
<2> ok
<2> sorry


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #perl
or
Go to some related logs:

gunshot wound tampon
mannnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn
porngrahpy
5424 1808
Oyee Maa oyee maa
#india
9 incher
mahaji India
#php
#kl



Home  |  disclaimer  |  contact  |  submit quotes