Results 1 to 2 of 2

Thread: validation

  1. #1
    kskumar is offline Member
    Join Date
    Nov 2013
    Posts
    1
    Rep Power
    0

    Unhappy validation

    Hi
    Looking for a java server side validation, that checks not to have alphabets or number sequence of length 5.
    eg. I should not allow alphabet abcde, abcdef or 12345,1234567.i can allow either abcd or 1234 but not of length 5 or more both in either alphabet or numbers.

    Thanks in advance :)

    Regards,
    Kumar

  2. #2
    JosAH's Avatar
    JosAH is online now Moderator
    Join Date
    Sep 2008
    Location
    Voorschoten, the Netherlands
    Posts
    13,004
    Blog Entries
    7
    Rep Power
    20

    Default Re: validation

    Have a look at regular expressions (the Pattern en Matcher classes); regular expressions can easily do the job.

    kind regards,

    Jos
    cenosillicaphobia: the fear for an empty beer glass

Similar Threads

  1. Validation of XML against XSD
    By abhinav_sharma in forum New To Java
    Replies: 0
    Last Post: 05-02-2012, 09:18 AM
  2. XML validation
    By Onra in forum New To Java
    Replies: 0
    Last Post: 03-24-2011, 06:14 PM
  3. XML Validation
    By sehudson in forum XML
    Replies: 5
    Last Post: 03-21-2011, 12:38 PM
  4. VAlidation
    By chetna1982 in forum New To Java
    Replies: 2
    Last Post: 12-11-2008, 07:08 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •