Is it possible to convert a regex back to its original/approximate path?

62 views Asked by At

I have these regex expressions:

/^\/users\/?(?=\/|$)/i
/^\/?$/i

Which were generated using a library called Path-to-RegExp

The original paths were:

/users
/

So is there any way-however imperfect-to turn them back to paths?

0

There are 0 answers