ok for my program i have an discoutn field. The discount can be an amount or a percent.
I wrote these regex
// Figures out if it's it's an valid amount
// Figures out if it's it's an valid percent
// which i turned into this statement....
here is the output of my test script...
here is my script
ok my problem is that after i did that i realzed that i needed a preg_match statement and that for some reason my regular expression doesn't work and i have no information on how a preg_match statement is different from a regex one
As always any ideas, links or help is greatly appreciated..