Regex for accepting text and HTML *entities*

2004-09-07 Thread Chris Welch
Hi, I have a dilemma, I am processing CGI forms and I need to come up with a regex that will accept HTML entities (i.e., " or {), white space, some other chars and text... The regex I've come up with is flawed: m/^&#?\w{2,4};|[EMAIL PROTECTED],\(\)\/\[\]:;\?!]+$/g; This will match and ampersand

Re: Regex for accepting text and HTML *entities*

2004-09-07 Thread Chris Welch
on <[EMAIL PROTECTED]> wrote: > Chris Welch wrote: > > I have a dilemma, I am processing CGI forms and I need to come up > > with a regex that will accept HTML entities (i.e., " or > > {), > > Your description makes me fear that you are somewhat off track.

Re: Regex for accepting text and HTML *entities*

2004-09-07 Thread Chris Welch
On Tue, 07 Sep 2004 22:43:10 +0200, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > [ Please type your reply *below* the quoted part of the message you > are replying to. ] > > Chris Welch wrote: > > Gunnar Hjalmarsson wrote: > >> Chris Welch wrote: > >&

Re: Regex for accepting text and HTML *entities*

2004-09-08 Thread Chris Welch
On Wed, 08 Sep 2004 00:43:44 +0200, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote: > Chris Welch wrote: > > I have a form and someone submits weird stuff that probably > > shouldn't be in there (but you never know.) This has to be writted > > to a DBM database/ fil