Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Do you whitelist or blacklist utf-8?
- Date: Wed, 23 Feb 2011 17:27:06 +0100
- From: Josh Glover <jmglov@example.com>
- Subject: Re: [tlug] Do you whitelist or blacklist utf-8?
- References: <4D639689.1010302@example.com> <4D63EFBC.1020900@example.com> <4D64C5DD.1040607@example.com> <4D64CB49.10906@example.com> <4D652AF5.10304@example.com>
On 23 February 2011 16:42, Dave M G <dave@example.com> wrote: > So, I suck at regex, but maybe I want to do something like this: > > ^\p{L}\p{N}\p{Z}$ ^[\p{L}\p{N}\p{Z}]$ This is assuming that PHP's regex engine can handle the POSIX attributes. > ... and then black list the space characters I don't like: > > ^\n\r\t$ I'd just replace them with acceptable whitespace: s/[\n\r\t]/ /g Or strip them: s/[\n\r\t]//g -- Cheers, Josh
- Follow-Ups:
- Re: [tlug] Do you whitelist or blacklist utf-8?
- From: Darren Cook
- References:
- [tlug] Do you whitelist or blacklist utf-8?
- From: Dave M G
- Re: [tlug] Do you whitelist or blacklist utf-8?
- From: Shmuel Fomberg
- Re: [tlug] Do you whitelist or blacklist utf-8?
- From: Dave M G
- Re: [tlug] Do you whitelist or blacklist utf-8?
- From: Shmuel Fomberg
- Re: [tlug] Do you whitelist or blacklist utf-8?
- From: Dave M G
Home | Main Index | Thread Index
- Prev by Date: [tlug] PHP functions to create MySQL syntax? (was: Do you whitelist or blacklist utf-8?)
- Next by Date: Re: [tlug] PHP functions to create MySQL syntax? (was: Do you whitelist or blacklist utf-8?)
- Previous by thread: Re: [tlug] Do you whitelist or blacklist utf-8?
- Next by thread: Re: [tlug] Do you whitelist or blacklist utf-8?
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links