thehost5968 Posted August 15, 2009 Share Posted August 15, 2009 Hi Can some one help me with Regular Expression Validation String in custom field for matching a Email Address as I have never used this before but once I have seen some code I should then be able to use it a lot. Thanks Simon 0 Quote Link to comment Share on other sites More sharing options...
rudberg Posted September 6, 2009 Share Posted September 6, 2009 This page might help: http://http://net.tutsplus.com/tutorials/other/8-regular-expressions-you-should-know/ I'm not sure if they need to be put in a special way. /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/ seemed to help me with email, but: /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\/\w \.-]*)*\/?$/ didn't with a URL. I haven't figured out whether /^$/ have to be used to indicate start and end, and if a ; needs to be there at the end yet... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.