Regular Expressions in Python | Regular Expressions Python Tutorial

  Рет қаралды 16,036

techTFQ

techTFQ

3 жыл бұрын

Regular Expressions in Python. Regular Expressions Python Tutorial.
This video is a complete tutorial on Regular Expressions in Python. This is a full course on how to use Regular Expressions in python. Regular Expression is also referred to as REGEX. Using Regular Expression, we can search for a pattern of string in the given text.
Regular Expressions are a very powerful tool used to perform complex searches on a text. By specifying a pattern for the string, we need to search for, Regular Expressions can extract a string even if it is present in different format until and unless this string follows the same pattern as mentioned in the defined Regular Expressions pattern.
In this video, we go through the different steps to be followed to use Regular Expressions in python. We also explain the different character class, special characters and also all the Regular Expressions symbols or notations which can be used to define or create a pattern in Regular Expressions in python. We also write multiple python programs to create different patterns to match an email id, phone no and date values. Finally, we also cover the sub method in Regular Expression which can replace or substitute the matched string with a replacement string.
There are only 4 steps to be followed in order to use Regular Expressions in python:
1. Import re module which is the Regular Expressions module in python. All the functions and features required to perform regular expression search in python can be accessed by importing the re module.
2. Next steps is to create the Regular Expressions Pattern. Pattern is basically the format or structure of the string that we are trying to search. In Regular Expressions, we have several different character classes, symbols and special characters which will help us to identify every kind of characters or symbols hence making it possible to define a pattern to search of any type of string.
3. Once the pattern is defined, next step is to search for this pattern in the given text or data.
4. Finally, we extract all the matched string.
I hope this video was helpful and gives you a good understanding of regular expressions in python. If you liked what you saw, then please make sure to like, subscribe and comment any feedback you may have.
Also please do not hesitate to share the video with your friends and colleagues who may be interested in learning regular expression in python.
🔴 WATCH MORE VIDEOS HERE 👇
✅ SQL Tutorial - Basic concepts:
• SQL Tutorial - Basic c...
✅ SQL Tutorial - Intermediate concepts:
• SQL Tutorial - Interme...
✅ SQL Tutorial - Advance concepts:
• SQL Tutorial - Advance...
✅ Practice Solving Basic SQL Queries:
• Practice Solving BASIC...
✅ Practice Solving Intermediate SQL Queries:
• Practice Solving INTER...
✅ Practice Solving Complex SQL Queries:
• Practice Solving COMPL...
✅ Data Analytics Career guidance:
• Data Analytics career ...
✅ SQL Course, SQL Training Platform Recommendations:
• SQL Course / Training
✅ Python Tutorial:
• Python Tutorial
✅ Git and GitHub Tutorial:
• Git and GitHub
✅ Data Analytics Projects:
• Data Analytics Projects
THANK YOU,
Thoufiq

Пікірлер: 75
@S_sport7
@S_sport7 10 ай бұрын
i do comment on you tube videos very rarely but this video made me so happy that i learned regular expression from biggner to advance .techTFQ has explained all the concept with numerical example and logic .it is the one of the best tutorial on regular expression on internet .Thank you sir may Allah bless you
@magicmedia7950
@magicmedia7950 Ай бұрын
This video takes top position for regex tutorials on KZbin. I wonder why it is so underated
@vadderamn2
@vadderamn2 Ай бұрын
This tutorial is making Zero to Hero in regex concepts.... Awesome explanation with different examples.... THANK YOU SO MUCH techTFQ❤❤
@clintwoodcb
@clintwoodcb Жыл бұрын
This is by far one of the best videos out there on Regular expression, very easy to follow...!!!
@1982Dibya
@1982Dibya Жыл бұрын
You are a genius man.The video cleared all my doubts in regular expression.Very well presented
@user-ko9ti3lc4q
@user-ko9ti3lc4q 11 ай бұрын
Explainded very well..thankyou
@jeevithaloknath9787
@jeevithaloknath9787 Жыл бұрын
very wonderful,super explanation.. Let me watch all of your videos.
@senthilramana
@senthilramana Жыл бұрын
A minuscule mistake at 41:52, you are entering an escape character in the text. (Hi/?), I don't think that is necessary, as the regular expression should be done at compile and not in the text we are working on. But you have explained regular expressions so well that I could get clarity over the fundamentals Your teaching is really awesome!!! Kindly do a video, of when we should use re.match, re.findall and re.search & also how to export to excel. For example, in this video, if you have shown how to export to excel where it has 3 headings Dates, Email Id, Phone number and the extracted results should be populated under respective headings, it would helped us a lot. Thank you !
@osoriomatucurane9511
@osoriomatucurane9511 6 ай бұрын
The most challenging is extractingvthe strings matching a give pattern. The we store them in a variety of ways and in diverse data structures. The extracted strings could be stored in temporary lists. Once we get the lists, we could easily create a pandas dataframe. That is one way to store the resulting matches in a tabular structured format.
@sathyamoorthy2362
@sathyamoorthy2362 2 жыл бұрын
Video is great i was working in oracle for sometime and need to know regex at that time i thought regex is different in each language but only later i realised most of the cases it is almost same,now i found this very late,I have to admit thoufiq bro you are one of the good teacher i found in last 6 months you are doing really a great work each one of your video is crisp and i never wasted a single minute.Once again thanks bro
@sachinsuman8536
@sachinsuman8536 Жыл бұрын
Your way of teaching is very good. First you position yourself in the beginner's shoes and then you give solutions. You always think of how the beginner will try to approach a problem and you always say why one should or shouldnot approach the problem in a particular way. That's the best part. Please make video on hadoop with python for beginners. I think you can make us understand in simplistic way.
@homayounbirangi852
@homayounbirangi852 Жыл бұрын
Very useful session. Thanks a lot.
@shaown420
@shaown420 9 ай бұрын
Best video of Regex in KZbin, no doubt!
@techTFQ
@techTFQ 9 ай бұрын
Thank you :)
@nikhilfromyoutube
@nikhilfromyoutube 3 ай бұрын
Thank You, TechTQF. Lots of love from India!
@theraizadatalks14
@theraizadatalks14 8 ай бұрын
Beautifully explained Toufiq. Handsdown the best tutorial on Regex expression ✌️
@sachinrathi4197
@sachinrathi4197 2 жыл бұрын
Thank you for simple explanation
@umarqayyum1098
@umarqayyum1098 3 ай бұрын
Thank you very much sir for the knowledge
@deepakk8758
@deepakk8758 Жыл бұрын
crystal clear, thanks a lot
@prajaktawagh2626
@prajaktawagh2626 Жыл бұрын
Great Explanation
@spsowji2755
@spsowji2755 Жыл бұрын
thank u so much yar u cleared all my doubts in "RE'' i learnt a lot in this vedio.......now iam confident in "RE"..........thank u thank u........👏👏👏🤝🤝🤝🤝🤝🤝
@techTFQ
@techTFQ Жыл бұрын
Glad this helped
@dennypermana
@dennypermana 2 жыл бұрын
I really enjoy this lesson and can sit on my chair for almost 1h. Clear explanation and easy to follow. Thank you for the lesson! great job!
@techTFQ
@techTFQ 2 жыл бұрын
I am pretty new to KZbin so it takes a lot of effort to make a single video but seeing such wonderful comments like the one you just posted makes every effort worth it.. I am so glad to see this feedback and I truly thank you for taking the time to express your thoughts abt the video.. THANK YOU VERY MUCH 🙏🏼
@techgeekstudio3967
@techgeekstudio3967 2 жыл бұрын
Luckily came across. Belive me this channel is very very useful to learn. Clearly from basic to advance. Every day i watch 2 videos atleast to learn something. Thanks for all your efforts. Appreciate!
@techTFQ
@techTFQ 2 жыл бұрын
Thank you so much 🙏🏼 So happy to read this.. glad it helps🙂
@prashanthreddy4940
@prashanthreddy4940 Жыл бұрын
Awesome bro
@mohammedshahil4898
@mohammedshahil4898 3 жыл бұрын
Very smoothly explained👌🏻 Loved it😍
@techTFQ
@techTFQ 3 жыл бұрын
Thank you hero ☺️☺️
@sandipmaurya7371
@sandipmaurya7371 2 жыл бұрын
I enjoyed the session. Liked and subscribed
@techTFQ
@techTFQ 2 жыл бұрын
Thank you Sandip 🙏🏼 Glad you liked it..
@rishibhattacharjee5893
@rishibhattacharjee5893 10 ай бұрын
best explanation
@rahamathansari
@rahamathansari 8 ай бұрын
excellent thanku
@Hunter-di9by
@Hunter-di9by 2 жыл бұрын
It was a great session.thank you for your efforts.
@techTFQ
@techTFQ 2 жыл бұрын
Glad you liked it
@zubaydee
@zubaydee Жыл бұрын
Dude!! Finaly I found your tutorial to understand the RegEx, thank you!
@techTFQ
@techTFQ Жыл бұрын
Glad you liked it
@zubaydee
@zubaydee Жыл бұрын
@@techTFQ I did the last pattern to get the phone numbers but still didn't get the last phone number? the pattern is "(\+\d)?\d{3}[-.]\d{3}\s?\d{4}", is there something I'm missing? Thank you!!
@zubaydee
@zubaydee Жыл бұрын
@@techTFQ I did this pattern "(\+\d)?\d{3}[-.]\d{3}\s?[0-9,]+"" to get the last number as well.
@shubhoo_7781
@shubhoo_7781 Жыл бұрын
thank you so much
@lvilligosalvs2708
@lvilligosalvs2708 Жыл бұрын
Very well explained. Thank you !!
@techTFQ
@techTFQ Жыл бұрын
Glad you liked it
@rajeshsingh7065
@rajeshsingh7065 Жыл бұрын
It was a realy great session with very good examples.Thank you for your efforts.
@techTFQ
@techTFQ Жыл бұрын
Thank you so much :)
@fathimafarahna2633
@fathimafarahna2633 3 жыл бұрын
Awesome👌Keep growing 👍
@techTFQ
@techTFQ 3 жыл бұрын
Thank you ☺️
@ganeshdevare7360
@ganeshdevare7360 2 жыл бұрын
Cleared the Whole Concept, Thank You, and Please Create Similar Videos for the DS community.
@techTFQ
@techTFQ 2 жыл бұрын
Thank you and glad this helped and will consider your request for a future video
@sheebaparveen3630
@sheebaparveen3630 3 жыл бұрын
Great work 💯💯
@techTFQ
@techTFQ 3 жыл бұрын
Thank you cheeb 😍
@VivekKBangaru
@VivekKBangaru Жыл бұрын
great session. Kindly share the file which you have prepared in the Excel.
@hashipalawilhelm4287
@hashipalawilhelm4287 2 жыл бұрын
Learnt allot here than in class, thank u
@techTFQ
@techTFQ 2 жыл бұрын
Glad this helped bro
@wollongar2014
@wollongar2014 2 жыл бұрын
excellent explanation, thank you....
@techTFQ
@techTFQ 2 жыл бұрын
Glad you liked it
@anurasenarathna1703
@anurasenarathna1703 2 жыл бұрын
Very good. You are a great teacher.
@techTFQ
@techTFQ 2 жыл бұрын
Thank you Anura 🙏🏼
@programmingpunch6726
@programmingpunch6726 2 жыл бұрын
In the month section can we apply limitations that month number should not exceed 12
@zaibunnisarazak925
@zaibunnisarazak925 3 жыл бұрын
Good💯👌
@techTFQ
@techTFQ 3 жыл бұрын
Thank you ❤️
@agarwalaarzoo3738
@agarwalaarzoo3738 5 ай бұрын
Thank you sir
@techTFQ
@techTFQ 5 ай бұрын
Welcome
@siddharudtevaramani1055
@siddharudtevaramani1055 2 жыл бұрын
Hi, I am stuck with this question. unable to input the 'if' condition under RegEx. "write a function that highlights where two ‘o’ characters appear beside each other in the given string only if there is another occurrence of two ‘o’ characters appearing beside each other subsequently in the same line." can you please help
@Hunter-di9by
@Hunter-di9by 2 жыл бұрын
Hi sir. I have seen all your Videos.Your lessons are excellent especially SQL & Python. Now I'm currently studying data Engineering and start learning python.so I have a question which are the most important topics which should i cover.all this topics you are completely in your Lessons series. So this python are enough for a become a data Engineer.or some advace python I should learn.
@techTFQ
@techTFQ 2 жыл бұрын
Thank you 🙏🏼 I have made a video on how to learn python, there I mentioned which concepts to learn in python, perhaps you can check that video
@manuagarwal7738
@manuagarwal7738 2 жыл бұрын
i enjoy a lot in your session .one thing i ask you that is it complete regex?
@techTFQ
@techTFQ 2 жыл бұрын
Hi Manu, Thank you for liking the content 🙏🏼 There are a lot more you can do with regex but everything I covered in this video should be good enough to get started and perhaps more than enough to use regex in general.. But of course based on your project and requirements there may be other formulas to be used .. cannot cover 100% of regex in one video ..
@jsmvlogs2001
@jsmvlogs2001 2 жыл бұрын
sir how can I take the input from user in multiple lines. please help me in this.!
@prabukaliyamoorthy6970
@prabukaliyamoorthy6970 Жыл бұрын
Hi Can you please include one pattern change(replace) to another pattern like date 02-02-2022 to 2022/02/02
@prajwalks7254
@prajwalks7254 2 жыл бұрын
Tq bro
@techTFQ
@techTFQ 2 жыл бұрын
Your welcome buddy
@reigngamer94
@reigngamer94 2 жыл бұрын
Sir Please make a video on Pandas,Numpy etc for Data Analysis
@techTFQ
@techTFQ 2 жыл бұрын
Thank you so the suggestion Reign 🙏🏼 Actually I am currently working on making video about pandas, numpy and matplotlib .. hopefully in the next few weeks..
@mdsaidulislamsayed6063
@mdsaidulislamsayed6063 2 жыл бұрын
is it possible to make a video on RegEx for Bigquery?
@techTFQ
@techTFQ 2 жыл бұрын
I’ll consider it bro
Regular Expression Methods in Python
8:37
Alex The Analyst
Рет қаралды 9 М.
Cute Barbie gadgets 🩷💛
01:00
TheSoul Music Family
Рет қаралды 76 МЛН
Super sport🤯
00:15
Lexa_Merin
Рет қаралды 20 МЛН
КАРМАНЧИК 2 СЕЗОН 6 СЕРИЯ
21:57
Inter Production
Рет қаралды 427 М.
Learn JavaScript CALLBACKS in 7 minutes! 🤙
7:17
Bro Code
Рет қаралды 31 М.
Regular Expression (RegEX) in Python - Complete Tutorial
1:13:29
WsCube Tech
Рет қаралды 44 М.
Hackerrank SQL Solution #1 Advanced SQL - 15 Days of Learning SQL
2:11
Learning All About Coding
Рет қаралды 1,1 М.
Using Python with Power BI
14:54
Power BI Life
Рет қаралды 6 М.
Python dictionaries are easy 📙
8:06
Bro Code
Рет қаралды 190 М.
Cute Barbie gadgets 🩷💛
01:00
TheSoul Music Family
Рет қаралды 76 МЛН