#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2009
    Posts
    2
    Rep Power
    0

    Need Currency Regular Expression Urgent!!!


    i need regular expression which should accept money value

    acceptable values
    10.000
    15435432
    12
    0.5
    .5

    and non acceptable values..
    0.00
    .00
    0.00000
    00.000
    0000.


    any help would be appriciated..
  2. #2
  3. Come play with me!
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    13,742
    Rep Power
    9397
    Why use a regular expression? It looks like the only criteria is that it's a non-zero number. Every programming language I know can handle that fine.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2009
    Posts
    2
    Rep Power
    0
    I think i have requested for the regular expression...

    and regular expressions are used for client side validation thats why i need that can any one provide me that??

    Comments on this post

    • ManiacDan disagrees : rude
  6. #4
  7. No Profile Picture
    User 165270
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2005
    Posts
    497
    Rep Power
    937
    Originally Posted by mr_muskurahat
    I think i have requested for the regular expression...
    Err, you mean that whatever you request should be be delivered asap? I don't think so. Note that although it might be urgent for you, many people answering questions on public forums or mailing lists are doing so on a voluntary basis and don't like to be rushed.
    This place isn't a free programming service, you know.

    Originally Posted by mr_muskurahat
    and regular expressions are used for client side validation thats why i need that can any one provide me that??
    I can provide you with it, but I won't. However, if you post what you have tried to solve this yourself, I will (try to) help you solve it.

    Good luck.

IMN logo majestic logo threadwatch logo seochat tools logo