Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing tags from a string
Message
From
17/08/2017 09:29:40
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
16/08/2017 22:18:33
General information
Forum:
VB.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01653403
Message ID:
01653434
Views:
63
>I have this code to remove tags from a string:
>
>
>lcValue=System.Text.RegularExpressions.Regex.Replace(lcValue, "<[^>]*>", "")
>
>
>However, I just found out that this is not working.
>
>Anyone can verify that Regex syntax and let me know what is wrong?

I use this
function UnTag(tcString)
*[2010/06/24 17:44:25] ndragan - strip html, return text.
	local c, lcTag
	#define hLT "<"
	#define hGT ">"
	c=tcString
	do while hLT$c
		lcTag=strextract(c, hLT, hGT,1,4)
		c=strtran(c, lcTag, "")
	enddo
	return c

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform