I've been trying to compose a regex for a partial url path. The path looks something like:
/stoic/variable/important/
By "stoic" I mean that part is stoic and has the same letters that won't change. By "variable" I mean that part is dynamic and will change dependent on some stuff, and should be an alphanumeric combination. By "important" I mean a part that is just composed of letters that I want to capture precisely.
I've tried the following to no avail:
/^(/stoic/\w+\/important/)$/.test(someString)