0% found this document useful (0 votes)
11 views13 pages

1.3.3 Regular Expression

The document outlines a course on Web Technologies for a Bachelor of Computer Application program, focusing on PHP and WordPress. It covers topics such as regular expressions, database connectivity, and security issues, along with their applications in web development. Additionally, it includes references for further reading and video resources for enhanced learning.

Uploaded by

siyalohiya67
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
11 views13 pages

1.3.3 Regular Expression

The document outlines a course on Web Technologies for a Bachelor of Computer Application program, focusing on PHP and WordPress. It covers topics such as regular expressions, database connectivity, and security issues, along with their applications in web development. Additionally, it includes references for further reading and video resources for enhanced learning.

Uploaded by

siyalohiya67
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 13

UNIVERSITY INSTITUTE OF COMPUTING

Bachelor of Computer Application


Subject Name: Web Technologies
22 CAH-371/23SCH-254

Web Technologies DISCOVER . LEARN . EMPOWER


1
Web Technologies
• Web development
Course Outcome
CO Title Level
• History
Number • Static pages
CO1 Understand • Dynamic pages
Students will learn basics of PHP

CO2 Understand
Students will understand the underlying concept of themes in & Analyze
wordpress.

CO3 Understand
Students will learn database connectivity, plugin and security
issues.

2
Web Development
Using PHP
Course Outcome • OOP
CO Title Level
Number
• Session and Cookies
• File handling
CO1 Understand

Students will learn basics of PHP • Database


CO2 Understand
Students will understand the underlying concept of themes in & Analyze
wordpress.

CO3 Understand
Students will learn database connectivity, plugin and security
issues.

3
Topics to be Covered
• Regular Expressions
• Regular Expression Syntax (POSIX)

4
PHP Regular Expressions
• Regular expressions are commonly
known as regex. These are nothing more
than a pattern or a sequence of charac-
ters, which describe a special search
pattern as text string.
• Regular expression allows you to search
a specific string inside another 5string.
Operators in Regular Expression

Description

^ It indicates the start of string.


$ It indicates the end of the string.
. It donates any single character.
() It shows a group of expressions.
It finds a range of characters, e.g., [abc]
[]
means a, b, or c.
It finds the characters which are not in
[^]
range, e.g., [^xyz] means NOT x, y, or z.
6
Special character class in Regular Expression
Special Character Description
\n It indicates a new line.

\r It indicates a carriage return.

\t It represents a tab.

\v It represents a vertical tab.

\f It represents a form feed.

\xxx It represents an octal character.


Advantage and uses of Regular Expression
Regular expression is used almost everywhere in current
application programming. Below some advantages and uses of
regular expressions are given:
1. Regular expression helps the programmers to validate text
string.
2. It offers a powerful tool to analyze and search a pattern as
well as to modify the text string.
3. By using regexes functions, simple and easy solutions are
provided to identify the patterns.
4. Regexes are helpful for creating the HTML template system
recognizing tags.
5. Regexes are widely used for browser detection, form
validation, spam filtration, and password strength checking.
6. It is helpful in user input validation testing like email address,
mobile number, and IP address. 8
POSIX Regular Expression
• The structure of POSIX regular expres-
sion is similar to the typical arithmetic
expression: several operators/elements
are combined together to form more
complex expressions.
• The simplest regular expression is one
that matches a single character9 inside
Image References
[1] www.w3resource.com/w3r_images/class-and-object-of-class.gif

[3]www.expertphp.in/images/articles/

ArtImgC67UTd_classes_and_objects.jpg

10
Book References
• Php: The Complete Reference, Steven Holzner, Tata McGraw-
Hill Education, 2007
• Modern PHP: New Features and Good Practices, Josh Lockhart,
"O'Reilly Media, Inc.“, 2015.
• PHP for the Web: Visual QuickStart Guide, Larry Ullman
Pearson Education, 2006.
• https://www.tutorialspoint.com/php/index.htm
• https://www.codecademy.com/learn/learn-php

11
Video Links
• https://www.youtube.com/watch?v=3RlDZEa6gW8
• https://www.youtube.com/watch?v=xqI2hdDn47k

12
THANK YOU

You might also like