On 2 June 2010 16:35, Jan G.B. <ro0ot.w00t@xxxxxxxxxxxxxx> wrote: > 2010/6/1 Peter Lind <peter.e.lind@xxxxxxxxx>: >> On 1 June 2010 17:33, Ashley Sheridan <ash@xxxxxxxxxxxxxxxxxxxx> wrote: >>> On Tue, 2010-06-01 at 16:31 +0100, Richard Quadling wrote: >>> >>>> $re1 = '/^[a-z]++$/i'; >>>> $re2 = '/^[a-z ]++$/i'; >>>> >>>> >>>> >>>> -- >>>> ----- >>>> Richard Quadling >>>> "Standing on the shoulders of some very clever giants!" >>>> EE : http://www.experts-exchange.com/M_248814.html >>>> EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp >>>> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 >>>> ZOPA : http://uk.zopa.com/member/RQuadling >>>> >>> >>> >>> Why the double ++ in the expressions there? Surely one + would match the >>> 1 or more characters that you need and the second one would just be >>> surplus? >>> >> >> Equally important: why have three people already done this persons >> homework. 5 minutes googling would have answered this ... >> > > Even more important: No answer is correct, because f.e. "äüßćéâ" are > also letters. > > Bye > > ;-) > So, would ... /^[^\p{M}\p{Z}\p{N}\p{P}\p{S}\p{C}\d\s]++$/i be ok? -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php