I'm using this JS regex text.match(/|(https:.+?path.+?)|/)[1]
to get a regex of a URL that is in between pipe |
characters but it's not working.
The text is ||https://url.com/path/value||
but I can't seem to extract the URL from it. I need to have path
in the middle to identify this particular URL since there are other URLs in the file.
It doesn't have to be a URL that I'm extracting. I mainly would like to know how to extract something from between a pair of characters (|
in this case).