Answer the question
In order to leave comments, you need to log in
What tool to use to parse a string from a pattern?
There is an array of strings. Any string from this array matches some pattern from the list of patterns.
You need to find a suitable pattern for the string and parse it along it, ideally with the output of the result in an object.
I thought to use the path-to-regexp library, but when performing a regular expression in the results, it is not clear how to get the value by key.
An example of a list of templates in the path-to-regexp library format:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question