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

String functions

Status
Not open for further replies.

Wes98765

Programmer
Jul 31, 2002
135
US
Ok I need some kind of string function or method to remove something like this.

<head>

fdsfsdfdsfdsf fdsfdsfds

</head>

How would I go about removing the <head> tags and keeping all the other data? Without doing a
Replace(x,'<head>','','ALL') bc this would get really tricky if there were 5 more tags ect. What would be perfect is if I could remove a tag and everything in between it. So I could remove select tags completely.

Thanks for any information

Wes
 
you could do a regex that looks for everything between the two tags, but i am no good with regex. :(

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top