#CatalystServerless Hackathon 2022

#CatalystServerless Hackathon 2022


Verifying a PANID using regex

Validating input field values using Javascript.

function verify_pan(){

 

    //match pattern1

    let pin1 = document.getElementById("pin1").value.toUpperCase();

    let pattern1 = /[A-Z]/;

    let result1 = pin1.match(pattern1);

 

    //match pattern2

    let pin2 = document.getElementById("pin2").value.toUpperCase();

    let pattern2 = /[PCHABGJLFT]/;

    let result2 = pin2.match(pattern2);

 

    //match pattern 3

    let pin3 = document.getElementById("pin3").value.toUpperCase();

    let pattern3 = /[A-Z]/;

    let result3 = pin1.match(pattern3);

 

    //match pattern 4

    let pin4 = document.getElementById("pin4").value.toUpperCase();

    let pattern4 = /[0-9]/;

    let result4 = pin4.match(pattern4);

 

    //match pattern 5

    let pin5 = document.getElementById("pin5").value.toUpperCase();

    let pattern5 = /[A-Z]/;

    let result5 = pin1.match(pattern5);

 

    let panid= (result1!==null)&&(result2!==null)&&(result3!==null)&&(result4!==null)&&(result5!==null)

    if(panid==false){

      alert("Invalid PANID. Please check again")

    }



    • Announcements

    • [Webinar] Zero manual sync: Enabling smart HR–payroll workflows with unified automation

      Hello everyone, If your HR and payroll teams are still relying on manual exports, spreadsheet reconciliations, or constant back-and-forth coordination to keep employee data aligned, this session is for you. . We’re hosting a live webinar featuring Kyle
    • [Webinar] How Raptee.HV accelerates its EV platform

      Curious about how EV platforms work behind the scenes? What does it actually take to run an EV platform from onboarding users to managing connected vehicles and deploying updates seamlessly? In this session, Raptee.HV shares how their platform is built
    • [Webinar] Deploy Docker apps with AppSail's custom runtime | Feb. 19

      Hi everyone, Join us on February 19, 2026 at 8–9 PM IST for a live Catalyst webinar demonstrating how to deploy OCI-compliant Docker images with AppSail's custom runtime. You’ll learn how to: Package your apps as Docker containers Deploy via CLI or connect
    • Catalyst backs Vite.js!

      Hi everyone, We're happy to support the open-source ecosystem that powers modern web development! If you’re building apps with Vite, Catalyst Slate is your go-to platform to deploy blazing-fast frontend apps with ease, scalability, and zero infrastructure
    • Catalyst QuickML 2025 Year In Review

      Hello everyone 👋 It’s been an exciting year for Catalyst QuickML. In 2025, as the Catalyst platform continued to expand its capabilities, QuickML focused on strengthening reliability, developer control, and operational readiness across the AI lifecycle.

      Catalyst Community