What is the MM/DD/YYYY regular expression and how do I use it in php?
The problem is one of delimeters and escaped characters (as others have mentioned). This will work: Note that I added a forward-slash to the beginning and ending of the expression and escapped (with a back-slash) the forward-slashes in the pattern. To take it one step further, this pattern won’t properly extract the year… just the … Read more