Do you know where your variables are? | |
PerlMonks |
Parsing an Oracle connect stringby fbicknel (Beadle) |
on Mar 04, 2011 at 22:00 UTC ( [id://891519]=perlquestion: print w/replies, xml ) | Need Help?? |
fbicknel has asked for the wisdom of the Perl Monks concerning the following question:
Fun stuff. 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: Samples. >>string<< is parsed as <userid> </password> <@net_service_name> Note, btw, the special case of '/' which needs to parse as simply '/'.
Back to
Seekers of Perl Wisdom
|
|