I'm currently developing a node.js JSON tool that involves incorporating external JSON files and merging them after performing nested lookups. I've hit a roadblock with regex patterns needed to validate the following scenarios:
!include('other.json') - true
!include("../folder/1.json") - true
!include(./current/external.json) - true
#include('other.json') - false
It's important for the starting and ending quotations to match:
!include('file.json) - false
!include('file.json") - false
Regex isn't my strong suit, so any guidance would be greatly appreciated.