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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Selecting text from a string 1

Status
Not open for further replies.

rookery

Programmer
Apr 4, 2002
384
GB
Is there anyway to select text from a string other than using the Mid, Left or Right functions? For example could you do something like the following:

str1 = "This is a test"
str2 = "test"

str3 = str1 - str2

str3 = "This is a"

I know this is a simplistic example but you get the general idea. Are there any suitable methods?
 
Thanks for your response Marrow. Wasn't aware of this function before but is very interesting.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top