sayedsohail Posted June 7, 2007 Share Posted June 7, 2007 hi everyone, I am trying to construct a pregmatch validation function which allows a user to type letters, numbers and followed by underscore, dash, comma and fullstop. This is what i tried so far and it doesn't work. /^[a-zA-Z0-9][\w\.\,\_]$/ in javascript ^[\w\d][\s\,\.\-\_]$ Neither of this works at all. Please help. Quote Link to comment https://forums.phpfreaks.com/topic/54589-solved-preg-match-letter-and-numbers-and-followed-by-_-maximum-of-250/ 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.