Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
RegExp string
Message
From
25/02/2013 05:03:30
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
24/02/2013 19:32:58
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
01566839
Message ID:
01566845
Views:
61
>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform