I am trying to use regex to group the root folder of a package and to group the rest of the files in it.
I tried the following
@package\/(.*)\/(\/*.+)$ with the test string
But instead of grouping
index.js I want to group for
src/index.js. I thought the
/ between the groups in my regex would match on the first
/. What do I miss?