Parsing tnsnames.ora using regex

后端 未结 5 2160
谎友^
谎友^ 2020-12-21 05:36

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 *?= *

5条回答
  •  渐次进展
    2020-12-21 06:04

    Well, since I haven't found a compelling answer to this issue (no offense @Mikael Svenson), I have just stuck with the second pattern listed in my question. It is sufficient for the time being, as the tnsnames.ora file always follows that exact pattern within our organization. Should the tnsnames.ora file format change, I will most likely adopt a parser.

提交回复
热议问题