gj wrote:
> Hi regexp experts
>
> I have been trying to think of an appropirate regexp
that would allow
> users to post video code on a site but not allow them
to add any
> malicious code.
>
> the attributes of the tags must allow no <script or
script
> also it must not allow java applets.
So you don't want '<script', 'script',
'<applet' ....tags show up in
your input strings? Is this correct? then you may want to
try something
like:
^(?!.*<?script)(?!.*<applet)
you can append more (?!.*TEXT) to forbid any other TEXTs you
dislike,
i.e.
^(?!.*<?script)(?!.*<applet)(?!.*TEXT)
untested
Xicheng
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regex googlegroups.com
To unsubscribe from this group, send email to
regex-unsubscribe googlegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---
|