Validate an Email Address





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

6
Date Submitted Mon. Oct. 9th, 2006 5:51 AM
Revision 1
Helper serpentskiss
Tags "Email Address" | RegExp | Validate
Comments 1 comments
PHP function to validate an email address.
7
Date Submitted Sun. Oct. 8th, 2006 9:28 PM
Revision 1
Beginner trevis
Tags Array | JavaScript | setTimeout | String
Comments 3 comments
I use this function when passing an array to a function being called from setTimeout();
12
Date Submitted Mon. Oct. 2nd, 2006 11:59 AM
Revision 1
Beginner drench
Tags escape | HTML | JavaScript | String
Comments 0 comments
Similar to Perl's CGI::escapeHTML(), though (because we can!) this adds it as a method to all String objects.
7
Date Submitted Wed. Sep. 27th, 2006 10:51 AM
Revision 1
Scripter shachi
Tags function | reverse | String
Comments 3 comments
Turns any string backwards. If you input "Test" it gives out "tseT". Hope it's useful.

The snippet shows how to use it.
7
Date Submitted Tue. Sep. 26th, 2006 1:13 PM
Revision 1
Scripter sehrgut
Tags C | ltrim | Parse | rtrim | String | trim
Comments 1 comments
The modus operandi for this is similar to that taken by PHP's implementation of such functions. It's comparitively memory-intensive, but is much faster than running a whole bunch of tests.

Basically, you set a mask -- an array of 256 null bytes -- and set those that correspond to characters you wish to trim. Then, rather than having to test if a character is in the set of characters to trim(O(n), or linear time on *ws), you just test once (O(1), or unit time) to see if the byte in question is set.

And of course, to trim(), you just wrap trim() around both ltrim() and rtrim().

One point of caution: these functions trim in place, so copy strings before trimming them. (Of course, if you usually want access to both pre- and post-trimmed strings, you could always make these malloc() a new string and return a pointer to it . . . )
9
Date Submitted Tue. Sep. 19th, 2006 7:53 PM
Revision 1
Helper jbplou
Tags CSharp | Security | String
Comments 0 comments
Generates an 88 character secure hash string for the passed in strings.
7
Date Submitted Tue. Sep. 19th, 2006 8:22 AM
Revision 1
Helper alambkin
Tags Exponentiation | Fast | Java
Comments 2 comments
A simple tool used for fast Exponentiation. Very useful if you are creating your own cryptograpgic methods.
6
Date Submitted Wed. Sep. 13th, 2006 9:47 AM
Revision 1
Helper alambkin
Tags Exponentiation | Fast | Java
Comments 1 comments
A simple tool used for fast Exponentiation. Very useful if you are creating your own cryptograpgic methods.
2
Date Submitted Tue. Sep. 12th, 2006 8:00 AM
Revision 1
Beginner dogo
Tags File | String
Comments 0 comments
This function loads an File into an String.
4
Date Submitted Sat. Sep. 9th, 2006 9:22 PM
Revision 1
Helper jbplou
Tags String | VB.NET
Comments 2 comments
This function provides the reverse of a string. It is constructed using string builder because strings in .NET are immutable, while stringbuilders are not. Therefore large strings could be slow to reverse if a regular string was used for the working value that is returned.