| | |
Grammar rules
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Hi folks, I want to write grammar rules for a form entry application.
On the form/frame I have some fields:
Customer name, telephone number
I check the validity of the textfileds before data saved.
What can be the grammar for a telephone number and name considering that users shud not enter spaces, wild chars, alphanumeric chars, etc...
Thanks.
On the form/frame I have some fields:
Customer name, telephone number
I check the validity of the textfileds before data saved.
What can be the grammar for a telephone number and name considering that users shud not enter spaces, wild chars, alphanumeric chars, etc...
Thanks.
PEACE !
I think for this purpose you will want to use regular expressions.
Check out the API for the java.util.regex package.
Check out the API for the java.util.regex package.
There are no stupid questions, only those too stupid to ask for help.
echo is a web developer's best friend. ![]() |
Similar Threads
- Python for Laptop Robot Speech recognition and TTS. (Python)
- Trouble with a certain Exception (Python)
- Eliminate Left Recursive Grammar (Computer Science)
- Problem about grammar rules (Computer Science)
Other Threads in the Java Forum
- Previous Thread: Read next line from file on condition.
- Next Thread: Inheritance and Polymorphism problem
| Thread Tools | Search this Thread |
-xlint actionlistener android api applet application array arrays automation binary blackberry block bluetooth character chat class classes client code compile component consumer database desktop developmenthelp eclipse error event exception fractal freeze ftp game givemetehcodez graphics gui html ide image input integer j2me j2seprojects java javac javaee javaprojects jmf jni jpanel julia lego linked linux list loop loops mac map method methods mobile netbeans newbie notdisplaying number online page print printf problem program programming project properties recursion researchinmotion rotatetext rsa scanner screen server set singleton size sms sort sql string swing template textfields threads time title tree tutorial-sample update windows working






