I am having a hard time understanding how to match a certain regular expression using javascripts match() function. I have a field in a table stored in the following format:
CH-01-Feb-13-1. I want to be able to grab the date without the dashes, i.e. 01-Feb-13. I was trying to figure out how to combine with ^- or . but not sure how to do it.
I am having a hard time understanding how to match a certain regular expression
Share
So you want the regular expression?
Something like
You can see the explanation here: http://www.regexper.com/ Just copy and paste the expression.
Example with Javascript