SlideShare a Scribd company logo
1 of 10
TRINITY INSTITUTE OF PROFESSIONAL
STUDIESSector – 9, DwarkaInstitutional Area, New Delhi-75
Affiliated G.G.S.IP.U, Delhi
By: ShwetaBhardwaj
WEB BASED
PROGRAMMING
PAPER ID: 20313
TRINITY INSTITUTE OF PROFESSIONAL STUDIES
Sector – 9, DwarkaInstitutional Area, New Delhi-75
Data Validation
Regular Expressions
• They provide the foundation for pattern-matching
functionality.
• Basically Regular Expressions are used for string
matches. They are based on search and pattern
matching strings in text.
• Using regular expression you can search a particular
string inside a another string, you can replace one string
by another string and you can split a string into many
chunks
TRINITY INSTITUTE OF PROFESSIONAL STUDIES
Sector – 9, DwarkaInstitutional Area, New Delhi-75
• PHP offers functions specific to two sets of
regular expression functions, each
corresponding to a certain type of regular
expression. You can use any of them based on
your comfort.
POSIX Regular Expressions PERL Style Regular Expressions
TRINITY INSTITUTE OF PROFESSIONAL STUDIES
Sector – 9, DwarkaInstitutional Area, New Delhi-75
Expression Description
[0-9] It matches any decimal digit from 0
through 9
[a-z] It matches any character from
lowercase a through lowercase z.
[A-Z] It matches any character from
uppercase A through uppercase Z.
[a-Z] It matches any character from
lowercase a through uppercase Z.
TRINITY INSTITUTE OF PROFESSIONAL STUDIES
Sector – 9, DwarkaInstitutional Area, New Delhi-75
Quantifiers:
• The frequency or position of bracketed
character sequences and single characters can
be denoted by a special character. Each pecial
character having a specific connotation. The +,
*, ?, {int. range}, and $ flags all follow a
character sequence.
TRINITY INSTITUTE OF PROFESSIONAL STUDIES
Sector – 9, DwarkaInstitutional Area, New Delhi-75
TRINITY INSTITUTE OF PROFESSIONAL STUDIES
Sector – 9, DwarkaInstitutional Area, New Delhi-75
Metacharacters
TRINITY INSTITUTE OF PROFESSIONAL STUDIES
Sector – 9, DwarkaInstitutional Area, New Delhi-75
Modifiers
Modifier Description
i Makes the match case
insensitive
o Evaluates the expression
only once
g Evaluates the expression
globally
I Makes the match case
sensitive
TRINITY INSTITUTE OF PROFESSIONAL STUDIES
Sector – 9, DwarkaInstitutional Area, New Delhi-75
Function Description
preg_match() The preg_match() function searches string
for pattern, returning true if pattern exists,
and false otherwise
preg_match_all() The preg_match_all() function matches all
occurrences of pattern in string.
preg_replace() The preg_replace() function operates just
like ereg_replace(), except that regular
expressions can be used in the pattern and
replacement input parameters.
preg_split() The preg_split() function operates exactly
like split(), except that regular expressions
are accepted as input parameters for
pattern.
TRINITY INSTITUTE OF PROFESSIONAL STUDIES
Sector – 9, DwarkaInstitutional Area, New Delhi-75

More Related Content

Similar to WEB BASED PROGRAMMING - Data Validation

Similar to WEB BASED PROGRAMMING - Data Validation (20)

Dimensional Modelling-Data Warehouse & Data Mining
 Dimensional Modelling-Data Warehouse & Data Mining Dimensional Modelling-Data Warehouse & Data Mining
Dimensional Modelling-Data Warehouse & Data Mining
 
Business mathematics
Business mathematicsBusiness mathematics
Business mathematics
 
Writing for Media- Art of putting words together
Writing for Media- Art of putting words togetherWriting for Media- Art of putting words together
Writing for Media- Art of putting words together
 
DIGITAL ELECTRONICS
DIGITAL ELECTRONICSDIGITAL ELECTRONICS
DIGITAL ELECTRONICS
 
CONTROL STATEMENTS
CONTROL STATEMENTSCONTROL STATEMENTS
CONTROL STATEMENTS
 
Java programming
Java programmingJava programming
Java programming
 
PRODUCTION & OPERATIONS MANAGEMENT- Facilities Planning
PRODUCTION & OPERATIONS MANAGEMENT- Facilities PlanningPRODUCTION & OPERATIONS MANAGEMENT- Facilities Planning
PRODUCTION & OPERATIONS MANAGEMENT- Facilities Planning
 
Digital Electronics -Boolean Algebra
Digital Electronics -Boolean AlgebraDigital Electronics -Boolean Algebra
Digital Electronics -Boolean Algebra
 
Introduction to Programming Language using C
Introduction to Programming Language using CIntroduction to Programming Language using C
Introduction to Programming Language using C
 
Typography
TypographyTypography
Typography
 
Object Oriented Programming Concepts
Object Oriented Programming ConceptsObject Oriented Programming Concepts
Object Oriented Programming Concepts
 
Types of Paragraphs
Types of ParagraphsTypes of Paragraphs
Types of Paragraphs
 
FEDT VB NET- Creating VB .Net Project
FEDT  VB  NET- Creating VB .Net Project FEDT  VB  NET- Creating VB .Net Project
FEDT VB NET- Creating VB .Net Project
 
Production management 2
Production management 2Production management 2
Production management 2
 
Introduction to programming language using c
Introduction to programming language using cIntroduction to programming language using c
Introduction to programming language using c
 
Data Base Management system
Data Base Management systemData Base Management system
Data Base Management system
 
Polymorphism
PolymorphismPolymorphism
Polymorphism
 
Financial Management
Financial ManagementFinancial Management
Financial Management
 
PRODUCTION & OPERATIONS MANAGEMENT- QUALITY
PRODUCTION & OPERATIONS MANAGEMENT- QUALITYPRODUCTION & OPERATIONS MANAGEMENT- QUALITY
PRODUCTION & OPERATIONS MANAGEMENT- QUALITY
 
Human resource Management
Human resource ManagementHuman resource Management
Human resource Management
 

More from Trinity Dwarka

More from Trinity Dwarka (20)

Why BAJMC in Trinity Dwarka
Why BAJMC in Trinity DwarkaWhy BAJMC in Trinity Dwarka
Why BAJMC in Trinity Dwarka
 
Career Options after BCA
Career Options after BCACareer Options after BCA
Career Options after BCA
 
Principles of Management-Management-Concept & Meaning
  Principles of Management-Management-Concept & Meaning  Principles of Management-Management-Concept & Meaning
Principles of Management-Management-Concept & Meaning
 
Principles of Management- Management Process & Functions
Principles of Management- Management Process  &  FunctionsPrinciples of Management- Management Process  &  Functions
Principles of Management- Management Process & Functions
 
Principles of Management- Managerial Levels & Roles-
Principles of Management- Managerial Levels & Roles-Principles of Management- Managerial Levels & Roles-
Principles of Management- Managerial Levels & Roles-
 
Management-Concept & Meaning
 Management-Concept & Meaning Management-Concept & Meaning
Management-Concept & Meaning
 
Principles of Management- Planning
Principles of Management- PlanningPrinciples of Management- Planning
Principles of Management- Planning
 
Organizing Authority & Responsibility- Principles of Management
Organizing Authority & Responsibility- Principles of ManagementOrganizing Authority & Responsibility- Principles of Management
Organizing Authority & Responsibility- Principles of Management
 
Staffing- Principles of Management
Staffing- Principles of ManagementStaffing- Principles of Management
Staffing- Principles of Management
 
Directing-Principles of Management
Directing-Principles of ManagementDirecting-Principles of Management
Directing-Principles of Management
 
Data Preprocessing- Data Warehouse & Data Mining
Data Preprocessing- Data Warehouse & Data MiningData Preprocessing- Data Warehouse & Data Mining
Data Preprocessing- Data Warehouse & Data Mining
 
Computer Networks- Network Basics
Computer Networks- Network BasicsComputer Networks- Network Basics
Computer Networks- Network Basics
 
Java Programming- Introduction to Java Applet Programs
Java Programming- Introduction to Java Applet ProgramsJava Programming- Introduction to Java Applet Programs
Java Programming- Introduction to Java Applet Programs
 
Linux Environment- Linux vs Unix
Linux Environment- Linux vs UnixLinux Environment- Linux vs Unix
Linux Environment- Linux vs Unix
 
Linux Environment- Linux Basics
Linux Environment- Linux BasicsLinux Environment- Linux Basics
Linux Environment- Linux Basics
 
BCA-Mobile Computing- BASICS OF MOBILE COMPUTING
BCA-Mobile Computing- BASICS OF MOBILE COMPUTINGBCA-Mobile Computing- BASICS OF MOBILE COMPUTING
BCA-Mobile Computing- BASICS OF MOBILE COMPUTING
 
INTRODUCTION TO INFORMATION TECHNOLOGY- IT Basics
INTRODUCTION TO INFORMATION TECHNOLOGY- IT BasicsINTRODUCTION TO INFORMATION TECHNOLOGY- IT Basics
INTRODUCTION TO INFORMATION TECHNOLOGY- IT Basics
 
Database Management System
Database Management System Database Management System
Database Management System
 
JAVA PROGRAMMING- OOP Concept
JAVA PROGRAMMING- OOP ConceptJAVA PROGRAMMING- OOP Concept
JAVA PROGRAMMING- OOP Concept
 
E-Commerce- Introduction to E-Commerce
E-Commerce- Introduction to E-CommerceE-Commerce- Introduction to E-Commerce
E-Commerce- Introduction to E-Commerce
 

Recently uploaded

Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
EADTU
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Economic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food AdditivesEconomic Importance Of Fungi In Food Additives
Economic Importance Of Fungi In Food Additives
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
What is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptxWhat is 3 Way Matching Process in Odoo 17.pptx
What is 3 Way Matching Process in Odoo 17.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Introduction to TechSoup’s Digital Marketing Services and Use Cases
Introduction to TechSoup’s Digital Marketing  Services and Use CasesIntroduction to TechSoup’s Digital Marketing  Services and Use Cases
Introduction to TechSoup’s Digital Marketing Services and Use Cases
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17How to Add a Tool Tip to a Field in Odoo 17
How to Add a Tool Tip to a Field in Odoo 17
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptxExploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
Exploring_the_Narrative_Style_of_Amitav_Ghoshs_Gun_Island.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 

WEB BASED PROGRAMMING - Data Validation

  • 1. TRINITY INSTITUTE OF PROFESSIONAL STUDIESSector – 9, DwarkaInstitutional Area, New Delhi-75 Affiliated G.G.S.IP.U, Delhi By: ShwetaBhardwaj WEB BASED PROGRAMMING PAPER ID: 20313
  • 2. TRINITY INSTITUTE OF PROFESSIONAL STUDIES Sector – 9, DwarkaInstitutional Area, New Delhi-75 Data Validation Regular Expressions • They provide the foundation for pattern-matching functionality. • Basically Regular Expressions are used for string matches. They are based on search and pattern matching strings in text. • Using regular expression you can search a particular string inside a another string, you can replace one string by another string and you can split a string into many chunks
  • 3. TRINITY INSTITUTE OF PROFESSIONAL STUDIES Sector – 9, DwarkaInstitutional Area, New Delhi-75 • PHP offers functions specific to two sets of regular expression functions, each corresponding to a certain type of regular expression. You can use any of them based on your comfort. POSIX Regular Expressions PERL Style Regular Expressions
  • 4. TRINITY INSTITUTE OF PROFESSIONAL STUDIES Sector – 9, DwarkaInstitutional Area, New Delhi-75 Expression Description [0-9] It matches any decimal digit from 0 through 9 [a-z] It matches any character from lowercase a through lowercase z. [A-Z] It matches any character from uppercase A through uppercase Z. [a-Z] It matches any character from lowercase a through uppercase Z.
  • 5. TRINITY INSTITUTE OF PROFESSIONAL STUDIES Sector – 9, DwarkaInstitutional Area, New Delhi-75 Quantifiers: • The frequency or position of bracketed character sequences and single characters can be denoted by a special character. Each pecial character having a specific connotation. The +, *, ?, {int. range}, and $ flags all follow a character sequence.
  • 6. TRINITY INSTITUTE OF PROFESSIONAL STUDIES Sector – 9, DwarkaInstitutional Area, New Delhi-75
  • 7. TRINITY INSTITUTE OF PROFESSIONAL STUDIES Sector – 9, DwarkaInstitutional Area, New Delhi-75 Metacharacters
  • 8. TRINITY INSTITUTE OF PROFESSIONAL STUDIES Sector – 9, DwarkaInstitutional Area, New Delhi-75 Modifiers Modifier Description i Makes the match case insensitive o Evaluates the expression only once g Evaluates the expression globally I Makes the match case sensitive
  • 9. TRINITY INSTITUTE OF PROFESSIONAL STUDIES Sector – 9, DwarkaInstitutional Area, New Delhi-75 Function Description preg_match() The preg_match() function searches string for pattern, returning true if pattern exists, and false otherwise preg_match_all() The preg_match_all() function matches all occurrences of pattern in string. preg_replace() The preg_replace() function operates just like ereg_replace(), except that regular expressions can be used in the pattern and replacement input parameters. preg_split() The preg_split() function operates exactly like split(), except that regular expressions are accepted as input parameters for pattern.
  • 10. TRINITY INSTITUTE OF PROFESSIONAL STUDIES Sector – 9, DwarkaInstitutional Area, New Delhi-75