split/Perl question

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Mike Starke
Date:  
Subject: split/Perl question
/_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