I have reviewed some similar posts but unfortunately I am unable to get this right...
I have a switch statement that is providing a MD file depending on the URL path. Each path has many subpaths, for example /notebook/users/id and I would like to always match based on /notebook. I have attempted a few regex patterns but I am unable to successfully add the wildcard:
switch (location.href) {
case `${URLZ}/${/^notebook.*/}`:
return <Markdown value={data.notebook} />;
Thanks!