Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (7th_zorro), 1,390 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Regular Expression in php #362275
03/07/11 16:15
03/07/11 16:15
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline OP
Expert
Damocles_  Offline OP
Expert

Joined: Feb 2009
Posts: 2,154
Hi, I dont get it with the reg expressions,
maybe someone has experience to define this (for php)

I need the reg-expression, to check if a String HAS ONLY
The Letters A-Z or a-z

Re: Regular Expression in php [Re: Damocles_] #362280
03/07/11 16:25
03/07/11 16:25
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline OP
Expert
Damocles_  Offline OP
Expert

Joined: Feb 2009
Posts: 2,154
Ok, I think I found it

if(preg_match("/^[a-zA-Z]+$/", $string_to_test))

Re: Regular Expression in php [Re: Damocles_] #362295
03/07/11 17:36
03/07/11 17:36
Joined: Oct 2004
Posts: 4,134
Netherlands
Joozey Offline
Expert
Joozey  Offline
Expert

Joined: Oct 2004
Posts: 4,134
Netherlands
Never understood why they made a script that obscure.


Click and join the 3dgs irc community!
Room: #3dgs
Re: Regular Expression in php [Re: Joozey] #362303
03/07/11 17:51
03/07/11 17:51
Joined: Feb 2009
Posts: 2,154
Damocles_ Offline OP
Expert
Damocles_  Offline OP
Expert

Joined: Feb 2009
Posts: 2,154
Long Hair Linux Freaks with Metal-T-Shirts invented this probably



(The same type who set up a password-system that
requires so complicated and monthly changing passwords,
that people have to write it -openly- on a paper in the office to remember it)


Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1