Title: What is RegEx? Regular Expression in Python & Meta Characters
1RegEx 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.
2What 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
3basic 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.
4common 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)
5The basic usages of commonly used metacharacters
are shown in the following table
6Regular 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/