Im new to regex so I may have made some stupid error
goal:
I am looking for a regex which:
- matches:
/saj/ - fails at:
/asdf/adsf/
context:
For my markdown site built with gatsby I need to filter al submenus (/x/) from subpages (/x/x/).
my attempts:
(\/.*?\/)/(\/.*?)(?!\/{2,})/