H
Headphones
Hello,
I try to regroup several lines into one by counting parenthesis. The
goal is to read a tnsnames files (Oracle Database) to get an array
where one line = one instance.
tnsnames example :
Instance_name = (DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=This_is_host_name)(PORT=1234))
(CONNECT_DATA=(SID=xxxxxx))
)
I know i can do a loop and count parenthesis for each lines and regroup
line when count is ok but i 'll prefer to have a regular expression for
doing this. Is there a regexp master that can help me for this ?
Thanks a lot
I try to regroup several lines into one by counting parenthesis. The
goal is to read a tnsnames files (Oracle Database) to get an array
where one line = one instance.
tnsnames example :
Instance_name = (DESCRIPTION=
(ADDRESS=(PROTOCOL=tcp)(HOST=This_is_host_name)(PORT=1234))
(CONNECT_DATA=(SID=xxxxxx))
)
I know i can do a loop and count parenthesis for each lines and regroup
line when count is ok but i 'll prefer to have a regular expression for
doing this. Is there a regexp master that can help me for this ?
Thanks a lot