Python session 12

15
WELCOME TO PYTHON SESSION 12 WELCOME TO PYTHON SESSION 12

Transcript of Python session 12

Page 1: Python session 12

WELCOME TO PYTHON SESSION 12WELCOME TO PYTHON SESSION 12

Page 2: Python session 12

AGENDA

Regular Expression

What is Regex.

What is the uses of Regex in python.

Page 3: Python session 12

What is Regex?

A regular expression is a special sequence of characters that helps you match or find other strings or sets of strings,using a specialized syntax held in a pattern..

Regular expressions are widely used in UNIX world.

We would cover two important functions, which would be used to handle regular expressions.

1. Match Function

2. Search Function

Page 4: Python session 12

Regex

Page 5: Python session 12

Regex Module

Page 6: Python session 12

Regex Search

Page 7: Python session 12

Regex Search

Page 8: Python session 12
Page 9: Python session 12
Page 10: Python session 12
Page 11: Python session 12

Row 1 Row 2 Row 3 Row 40

2

4

6

8

10

12

Column 1

Column 2

Column 3

Page 12: Python session 12
Page 13: Python session 12
Page 14: Python session 12

THANK YOU

Page 15: Python session 12

Reference

Reference Link:

http://www.tutorialspoint.com/python/python_reg_expressions.htm