0
Getting subStrings from String
Participant
,
/t5/animate-discussions/getting-substrings-from-string/td-p/230081
Aug 13, 2007
Aug 13, 2007
Copy link to clipboard
Copied
I am going to receive a string like this
http://localhost:99999/proxy/http://www.mysite.com/videos/myVideo.flv
and I will need to pull out some info such as the port number "99999" and the flv url " http://www.mysite.com/videos/myVideo.flv"
what are my option to get these values from a string?
http://localhost:99999/proxy/http://www.mysite.com/videos/myVideo.flv
and I will need to pull out some info such as the port number "99999" and the flv url " http://www.mysite.com/videos/myVideo.flv"
what are my option to get these values from a string?
TOPICS
ActionScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Guru
,
/t5/animate-discussions/getting-substrings-from-string/m-p/230082#M274046
Aug 13, 2007
Aug 13, 2007
Copy link to clipboard
Copied
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
breez11
AUTHOR
Participant
,
/t5/animate-discussions/getting-substrings-from-string/m-p/230083#M274050
Aug 13, 2007
Aug 13, 2007
Copy link to clipboard
Copied
I did look into that before my post but is seems to limited
since you have to specify by number of characters. Port number can
be 4-5 numbers in length and the flv url will include a random
amount of number and letter combos before the filename. Is it
possible to flag every thing within forward slashes or any
character in that matter.
Example any value between : / this would be the port num .
Example any value between : / this would be the port num .
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
breez11
AUTHOR
Participant
,
/t5/animate-discussions/getting-substrings-from-string/m-p/230084#M274052
Aug 13, 2007
Aug 13, 2007
Copy link to clipboard
Copied
clbeech you are correct. If I can ensure that the port number
remains 5 characters long then the string class will be ideal for
this.
working example that was easy to figure out.
working example that was easy to figure out.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Guru
,
/t5/animate-discussions/getting-substrings-from-string/m-p/230085#M274055
Aug 13, 2007
Aug 13, 2007
Copy link to clipboard
Copied
Another way is to use indexOf to help you with strings of
different length. But I'm lazy and often use the corresponding
string split and/or array join methods.
e.g.
e.g.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Guru
,
LATEST
/t5/animate-discussions/getting-substrings-from-string/m-p/230086#M274057
Aug 14, 2007
Aug 14, 2007
Copy link to clipboard
Copied
great
breez, and nice method there
GWD.!
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

