Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RegExp string
Message
De
25/02/2013 05:03:30
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
24/02/2013 19:32:58
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
01566839
Message ID:
01566845
Vues:
62
>Hi folks.
>
>Does anyone on the UT have regEx string that will remove JAVA and JavaScript?

You don't need that...
procedure StripScript(tcHtml)
	c=tcHtml
	DO WHILE ATC("<SCRIPT", c)>0
		lcScript=STREXTRACT(c, "<SCRIPT", "</SCRIPT>",1, 7)
		c=STRTRAN(c, lcScript, "")
	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
Répondre
Fil
Voir

Click here to load this message in the networking platform