How to validate normal text with wite space.

Discussions of secure PHP coding. Security in software is important, so don't be afraid to ask. And when answering: be anal. Nitpick. No security vulnerability is too small.

Moderator: General Moderators

Post Reply
ryan9979
Forum Newbie
Posts: 3
Joined: Wed May 05, 2010 10:48 pm

How to validate normal text with wite space.

Post by ryan9979 »

Hi all,

I have been looking at the ctype functions hoping to find something that will validate normal text and white spaces like this post here without learning a new regex. Alnum is close but breaks on the white spaces.

Thanks in advance.
evstevemd
Forum Newbie
Posts: 11
Joined: Sat Jun 11, 2011 10:45 pm

Re: How to validate normal text with wite space.

Post by evstevemd »

ryan9979 wrote:Hi all,

I have been looking at the ctype functions hoping to find something that will validate normal text and white spaces like this post here without learning a new regex. Alnum is close but breaks on the white spaces.

Thanks in advance.
what is wrong with regex?
ryan9979
Forum Newbie
Posts: 3
Joined: Wed May 05, 2010 10:48 pm

Re: How to validate normal text with wite space.

Post by ryan9979 »

nothing. just thought there might be an existing function I didn't know about.
Post Reply