FL
FreeLumin
Back to Blog/Academic & Universities
Academic & Universities• October 2, 2026• 5 min read

University Roll Number Validation: Exact Regex Rules for DU, IPU, AKTU & GJUST

Every college tech society has experienced the frustration of opening a spreadsheet only to find dummy submissions like "12345", "NA", or "asdf" in the roll number column. Here is how to configure bulletproof regex validation rules in FreeLumin.

Why Generic Text Fields Fail for Academic Forms

In Google Forms, form creators usually choose a plain "Short Answer" field. Even if you turn on the basic "Is Number" validation, students can still type 1, 999, or their phone number.

FreeLumin provides two layers of protection:

  • Native 12-Digit University Roll Type: Automatically checks exact numeric 12-digit length on both the client (as the user types) and the backend database.
  • Custom Regular Expression (Regex): Allows university organizers to enforce university-specific prefixes, year codes, and department numbers.

Copy-and-Paste Regex Patterns for Major Universities

GJUST & Haryana State Technical (12 Digits)^\\d{12}$

Example: 260010190045. Requires exactly 12 numeric digits. Ideal for GJUST Hisar, MDU Rohtak, and AKTU Lucknow student enrollment IDs.

Delhi University (DU) College Roll (11 Digits)^\\d{2}[0-9]{3}[0-9]{3}[0-9]{3}$

Example: 23001504012. Matches DU's standard college examination roll numbers with year prefixes (e.g. 23, 24, 25).

GGSIPU (IP University) 11-Digit Enrollment^\\d{11}$

Example: 00116403221. Standard 11-digit enrollment format used across all IPU engineering and management colleges in Delhi NCR.

Institutional Email Restriction (@*.edu / @*.ac.in)^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.(edu|ac\\.in)$

Example: student@college.ac.in. Blocks personal Gmail or Yahoo addresses and allows only registered college email accounts.

How to Apply Regex in FreeLumin Builder

  1. In your form editor, select the Roll Number or Short Text question.
  2. Open the right-hand Inspector panel.
  3. Under Validation Rules, paste the regex into the Pattern field.
  4. Provide a helpful custom error message like: "Please enter your valid 12-digit university roll number."
  5. Toggle Unique Constraint on so a roll number cannot be used twice.

Build your university form with zero fake submissions

Test FreeLumin's native roll number validator and duplicate prevention today.