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

find text between two symbols.

Status
Not open for further replies.

waterj4

MIS
Sep 14, 2005
3
US
I have a text file that I want to get the data that is between two symbols. (":" and ",")

example of Text field
"Pet: Dog, Rover Black lab"
"Pet: Fish, Moby Goldfish"
"Pet: Bird, Tweety Canary"

I just want to grab between ":" and "," to return

" Dog"
" Fish"
" Bird"

How do I do this?
 
Have a look at the InStr and Mid functions.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top