I am attempting to pull some information from my tnsnames file using regex. I started with the following pattern:
MYSCHEMA *? = *?[\\W\\w\\S\\s]*\\(HOST *?= *
The following regex will parse out individual TNS entries, and all you have to do is parse each result how you see fit for the names / values
([\w-]+)\s*=(?:\s|.)+?\)\s*\)\s*\)\s*(?=[\w\-])
Example: https://regexr.com/3r2vn