Lutz Epperlein wrote:
> You can try to implement this reg ex: <\/\?[^>]\+>
>
> All text parts detected by this reguluar expression are html tags and
> can be removed.
>
> Regards
> Lutz
>
Lutz,

I already have something similar but it does too much.

Also, does your pattern have extra escapes "\" so that it will work with
4D? I'm trying it in a non-4D matching tool, "The Regex Coach", and it
isn't matching tags?

You have
match first <
optionally match a \
match any text that isn't >
match closing >

That will actually strip text that isn't an html tag, but sort of looks
like one. It can also remove text from mathematical formulas. For example,

(a < b) | ( b > 1000)

ends up as

(a  1000)

In my case stripping psuedo html tags might be OK. Removing text from
mathematical formulas wouldn't be.

I wrote:
> Basic stripping can be achieved by using a regular expression, but there
> are some exploits where that isn't enough. A more advanced solution
> would still use regexp but with additional logic.
Best,

Brad
_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to