Posted on 2013-05-21
I am trying to write a regex expression that returns true or false based on the directory passed in. For example:
var pattern = new RegExp("/^\/application\/modules\/?\/models/i");
I've been at this awhile and dont seem to be getting anywhere.. I have tried substituting in * for ? as well as various other constructs. Can someone explain to me what IM missing here?
500 points for working solution.