regular expressions in a string?
From: dev (NOSPAMDONALDDUCKVOIDEMAIL_at_hotmail.com)
Date: 03/29/04
- Next message: <>: "Re: "PHP and MySQL Web Development" by Luke Welling and Laura Thomson"
- Previous message: Julien Pasquier: "PHP COM Windows (ActiveX)"
- Next in thread: dev: "Re: regular expressions in a string?"
- Reply: dev: "Re: regular expressions in a string?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 29 Mar 2004 16:58:41 +0200
Hey all,
i want a string only to contain
alpha-character : a-zA-Z but also ü etc and OR in combination with
(\.|\-|\') is for this a good ereg? :(
this doesnt work
if(ereg("/[\w]|([\w]+(\.|\'|\-))*/", $value)===false)return "error";
i am not so good with ereg thingy's :)
Thnks for the help,
Cheers,
Dev
- Next message: <>: "Re: "PHP and MySQL Web Development" by Luke Welling and Laura Thomson"
- Previous message: Julien Pasquier: "PHP COM Windows (ActiveX)"
- Next in thread: dev: "Re: regular expressions in a string?"
- Reply: dev: "Re: regular expressions in a string?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|