VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

GetTag, GetTagText, CutTag

Jamie Richard Wilson  (2 Submissions)   String Manipulation   Visual Basic 3.0   Beginner   Wed 3rd February 2021

This is a set of three functions that pull tagged data, such as that from HTML or XML, based on the tag name. I've used this in a number of applications where I've need to store multiple bits of variable-length data in a single string or file.

Inputs
A string containing tags which in turn contain data you are searching for AND the name of the tag. For instance, if you're pulling from HTML for anything between

and

then you would enter "H1" as the tag name.

Returns
GetTag() returns the data between the specified tags along with the tags. GetTagText() returns the data between the specified tags, without the tags. CutTag() returns the original text minus the specified tags and the data between them.

Rate GetTag, GetTagText, CutTag (5(5 Vote))
GetTag, GetTagText, CutTag.bas

GetTag, GetTagText, CutTag Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters