What is RegEx? Regular Expression in Python & Meta Characters - PowerPoint PPT Presentation

About This Presentation
Title:

What is RegEx? Regular Expression in Python & Meta Characters

Description:

We have explained about regular expression in this blog. Basically, Regex is a special sequence of characters that helps you match other strings. – PowerPoint PPT presentation

Number of Views:161

less

Transcript and Presenter's Notes

Title: What is RegEx? Regular Expression in Python & Meta Characters


1
RegEx In Python
  • What's the first thing you need to know about
    RegEx? Hold on! 'Cause, that's what we are going
    to explain via this tutorial that will surely
    help to make you understand thoroughly about
    whole regular expressions' concept.

2
What is RegEx
A regular expression (regex, regexp or re) 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 expression patterns are
assembled into a set of byte codes which are then
executed by a matching engine written in C
3
basic regular expression through the following
image
The caret sign () serves two purposes. Here, in
this figure, its checking for the string that
doesnt contain upper case, lower case, digits,
underscore and space in the strings. In short, we
can say that it is simply matching for special
characters in the given string.
4
common usages of regular expressions
  • The most common usages of regular expressions
    are
  • Search a string (search and match)
  • Finding a string (findall)
  • Break string into a sub strings (split)
  • Replace part of a string (sub)

5
The basic usages of commonly used metacharacters
are shown in the following table  
6
Regular expression 
  • CONTACT US
  • We serve in an industry built on trust and it
    takes years to build this trust. Trust can be
    achieved through proper communication, support,
    availability, experience and many more.
  • Address D-258, FIFTH FLOOR, PHASE-8 A
    INDUSTRIAL AREA, MOHALI
  • Tel (91) 8968488244
  • Site https//blog.paradisetechsoft.com/regex-in-p
    ython/
Write a Comment
User Comments (0)
About PowerShow.com