Parsing an Oracle connect stringby fbicknel (Sexton)
|on Mar 04, 2011 at 22:00 UTC||Need Help??|
fbicknel has asked for the
wisdom of the Perl Monks concerning the following question:
Say you have an oracle connect string that looks like:
Now say you want to parse that. I came up with this regex that seems to do it, at least for some of the simple tests below.
I humbly ask your opinions:
>>string<< is parsed as <userid> </password> <@net_service_name>
Note, btw, the special case of '/' which needs to parse as simply '/'.