RE: [PHP] HELP , HELP ,HELP
| From: | Chris W. Parker | Date: | Wed, 30 Mar 2005 01:04:10 +0000 |
| Subject: | RE: [PHP] HELP , HELP ,HELP | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-211829@lists.php.net to get a copy of this message | ||
wangchq <mailto:wangchq@china-channel.com>
on Tuesday, March 29, 2005 4:50 PM said:
> Hi;
Hello.
> I use this regulation expression to check account(money)type, but it
> does not work.
That's "regular" expression. You were close. :P
> if(eregi("^\$[0-9]+\,[0-9]+\.[0-9]+",$set,$account)){
>
> $reg_account=$account[1]; }
>
> else $reg_account=-1;
Give some examples of the data you are feeding your regex so we can see
where you are going wrong.
Chris.