Validating Pancard and Aadhar card in pega

Поделиться
HTML-код
  • Опубликовано: 7 янв 2025

Комментарии • 27

  • @hyd_explorer_360
    @hyd_explorer_360 6 месяцев назад

    Hi sir, while trying the above code getting the syntax error like below
    line: 2
    Syntax error on token "(", ; expected
    Syntax error on token ")", ; expected
    Compile failed.

    • @pegabytes
      @pegabytes  6 месяцев назад

      Check
      Java code if you missing any semicolon properly

  • @akhilsai023
    @akhilsai023 3 года назад +1

    Great content sir ❤️ keep posting for us

  • @revanthvanka9699
    @revanthvanka9699 Год назад +1

    Hi sir the code you have used is not taking spaces it is taking commas I'm using it for credit card number validation

  • @royala2264
    @royala2264 3 года назад +2

    Hi Sir
    How did you changed that error message (Invalid valid specified for Aadhaar card)

  • @lokeshharshavardhan
    @lokeshharshavardhan 11 месяцев назад

    Even if we are giving empty string and submitting the form , the form is submitting without any error, it is not showing false . How to validate it without giving required mark

    • @pegabytes
      @pegabytes  11 месяцев назад

      Add another condition that pandcard is empty throw the error

    • @lokeshharshavardhan
      @lokeshharshavardhan 11 месяцев назад

      @@pegabytes How to embed
      chatbot in our casetype

    • @pegabytes
      @pegabytes  11 месяцев назад

      I think find this in pega docs

  • @pardhusiva1718
    @pardhusiva1718 3 года назад +2

    can you share code please?

  • @Charantej9731
    @Charantej9731 2 года назад +2

    brother ,
    please share that java code.......for aadhar and pan card.

    • @muralijillellamudi409
      @muralijillellamudi409 2 года назад

      // Regex to check valid Aadhaar number
      String regex= "^[2-9]{1}[0-9]{3}\\s[0-9]{4}\\s[0-9](4)$";
      // Compile the ReGex
      java.util.regex.Pattern p=java.util.regex.Pattern.compile(regex);
      // If the string is empty, return false
      if (theValue == null || theValue.trim().equals("")) return false;
      // Pattern class contains matcher() method to match the given string and the regular expression
      java.util.regex.Matcher m = p.matcher(theValue);
      // Return if the string matched the ReGex
      return m.matches();

  • @naturalworld1002
    @naturalworld1002 2 года назад

    hi very clear explanation...
    but may i know wr u find java regex code please

  • @teluguentertainmentstudio
    @teluguentertainmentstudio 2 года назад +1

    bro code antha add chesanu but space kodthunte gap ravatledhu anna

  • @rajithmani7990
    @rajithmani7990 2 года назад

    Hi sir,
    In the Regex pattern what is the use of $ in the last?

    • @rajithmani7990
      @rajithmani7990 2 года назад

      @@pegabytes but in other validation code $ is not there at the end.

  • @VasuUkVlogs
    @VasuUkVlogs 3 года назад

    Anna koncham a codes ne share chai anna ALAgay password ki kuda edit validate rai anna , present avarevi videos layvu vati medha

  • @vamsiram3326
    @vamsiram3326 3 года назад

    Bro can I have your mail i'd please