
07-09-2007
|
| Senior Member
Join Date: Jun 2007
Posts: 1,413
BRL$: 4,211.66 Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 172 | | string filtering I was looking for some email validation scripts and came across this: ------------------------------- var emailfilter=/^\w+[\+\.\w-]*@([\w-]+\.)*\w+[\w-]*\.([a-z]{2,4}|\d+)$/i function checkmail(e){ var returnval=emailfilter.test(e); return returnval; } ------------------------------- It works but I've never seen anything like that first line before. What is it called so I can learn more about it? To view links or images in this forum your post count must be 1 or greater. You currently have 0 posts. | |
__________________ To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 0 or greater. You currently have 0 posts. | | | |