Have someone an idea how to check entrees from users for fields:
^\d*\.?\d*$ ->should test on only numbers.
^[\w\d/_-]+$ ->wants only one word, only numbers, chars and _-
.+@.+\..+ -> wants something and @ and .
\d+ -> only numbers
So far i understand this, but i have no clue to make rules from this.
e.g i wanna have only chars (a-z,A-Z) and numbers, but no spaces before, between or at end.
Should be: ^\w\d*\.?\w\d*$
[This message has been edited by Robert (edited January 15, 2000).]
^\d*\.?\d*$ ->should test on only numbers.
^[\w\d/_-]+$ ->wants only one word, only numbers, chars and _-
.+@.+\..+ -> wants something and @ and .
\d+ -> only numbers
So far i understand this, but i have no clue to make rules from this.
e.g i wanna have only chars (a-z,A-Z) and numbers, but no spaces before, between or at end.
Should be: ^\w\d*\.?\w\d*$
[This message has been edited by Robert (edited January 15, 2000).]