split/Perl question

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Mike Starke
日付:  
題目: 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