split/Perl question

Mike Starke plug-discuss@lists.plug.phoenix.az.us
Mon, 11 Nov 2002 15:50:40 -0500


/_Which, if any of these colons belongs to the data? Just "http://"?
/_
/_s/http:/http\:/g
/_
/_That'll escape the colons in URLs. Don't forget https:, ftp:, etc. if
/_they're possibilities.
/_
/_Now split on unescaped colons. Might be easier to change "http://" to
/_"http;//", then change it back.
/_

Yes, in this particular case, it is the URL. Your suggestion sounds
like a good work around in this case, but what happens if another field
contains a colon? That is my problem. 

I was kind of hoping for a solution that would take advantage of the
fact that I have a fixed amount of fields.

v/r
-Mike