wangchq <mailto:wangchq@xxxxxxxxxxxxxxxxx> 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php