|
|
| Syntactic Confectionery Delight | |
| PerlMonks |
Parsing an Oracle connect stringby fbicknel (Sexton) |
| on Mar 04, 2011 at 22:00 UTC ( #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
|
|
||||||||||||||||||||||||