__md__ Posted February 23, 2010 Share Posted February 23, 2010 Hi all Can someone please explain to me exactly what this code is doing please i would bee very grateful function ValidatorTrim(s) { var m = s.match(/^\s*(\S+(\s+\S+)*)\s*$/); return (m == null) ? "" : m[1]; } Quote Link to comment Share on other sites More sharing options...
developerdave Posted February 23, 2010 Share Posted February 23, 2010 function ValidatorTrim(s) { var m = s.match(/^\s*(\S+(\s+\S+)*)\s*$/); return (m == null) ? "" : m[1]; } Its a code highlighter and s is your search term/keyword to highlight 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.