cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
bbarton11
Level 5

How do I split a string?

Hi All,

I have a string that will be a server location such as:

http://localhost/ReportServer
https://localhost/ReportServer
http://localhost:85/ReportServer
https://localhost:85/ReportServer

How can I split the string (could be any of those four varities) to get seperate strings for each component like:

http (or https)
localhost
85 (if present)
ReportServer
Labels (1)
0 Kudos
(2) Replies
ch_eng
Level 7

This should help with this particular case of string splitting:


http://kb.flexerasoftware.com/doc/Helpnet/installshield19helplib/Subsystems/installshield19langref/helplibrary/ParseUrl%20example.htm

(kb.flexerasoftware.com/doc/Helpnet/installshield19helplib/Subsystems/installshield19langref/helplibrary/ParseUrl%20example.htm)
0 Kudos
bbarton11
Level 5

Excellent, thank you!
0 Kudos