Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

retrieving certain data out of a string...

Status
Not open for further replies.

taezou

Technical User
Aug 17, 2002
2
US
hello! this is probably a really really stupid question but i cannot figure out how to do this...

say i have a string:
1. [Tim Follin]:[Coral Reef] - Winamp

i want to extract [Tim Follin]:[Coral Reef] out of it.
if this were static text, it would be quite easy. but..
it can change to
1. [Tim Follin]:[Coral Reef] - Winamp [STOPPED]
or
1. [Tim Follin]:[Coral Reef] - Winamp [PAUSED]

and i could also change the title formatting, so it'd look like

1. Tim Follin - Coral Reef - Winamp

or ... anything i really like.

my question is, how can i extract text between

[number]. and - Winamp?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top