How to understand the results from regexp.exec from multiple input path #280
Closed
shitai-chen
started this conversation in
General
Replies: 1 comment
-
It matches the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi Folks,
I was trying to do something like:
I am trying to understand the response. My goal is to put all my api patterns into an array, then I can use your lib to detect which pattern the incoming URL falls into, however, I don't understand the output format. I don't know the array means. Why there are some empty fields there? and why 4 elements in the output array.
Anyone can explain this to me? Super thanks.
Also I tried match function whose result format is more readable to me. So I also wonder if I can set an array of strings to match function then match can tell me which one it matches. That would be great.
Beta Was this translation helpful? Give feedback.
All reactions