Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Removing tags from a string
Message
De
17/08/2017 09:29:40
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
16/08/2017 22:18:33
Information générale
Forum:
VB.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01653403
Message ID:
01653434
Vues:
61
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform