Python RegEx | Python Regular Expressions Tutorial | Python Tutorial | Python Training | Edureka

  Рет қаралды 254,792

edureka!

edureka!

Күн бұрын

Пікірлер: 108
@edurekaIN
@edurekaIN 6 жыл бұрын
Got a question on the topic? Please share it in the comment section below and our experts will answer it for you. For Edureka Python Course curriculum, Visit our Website: bit.ly/2OpzQWw
@isaacway4449
@isaacway4449 6 жыл бұрын
Thanks for the video. Your example at 31:00 is explained incorrectly, I'm afraid it might confuse people who watch this video. You match the pattern "\d{5,7}" to the string of numbers and explain it as "Searching for the numbers in the range 5-7 and matching to those numbers." Thats not actually what the curly-brace syntax specifies. The curly brace syntax \d{5,7} means match ANY number character (0-9) such that there are 5 to 7 number characters in a row. You explain it as matching any number characters in the range 5-7, the fact that there were 3 matches was purely coincidence created by the fact that the strings were literally digits in order from 1 to whatever, and once the digit sequences reached a length of 5 they actually included the number 5. The fact that the sequence matched once the sequence included 5 was because the LENGTH of the sequence was 5, not because the sequence included the character 5 itself. Later on, you use the curly braces again with "\w{3}", where you explain it and use it correctly. Thanks again.
@edurekaIN
@edurekaIN 6 жыл бұрын
Hey Issac, thank you for pointing this out. We will definitely look into this. Cheers :)
@amiyaramantripathi6320
@amiyaramantripathi6320 4 жыл бұрын
thx for the help buddy
@sanjeevKumar-eg6hp
@sanjeevKumar-eg6hp 2 жыл бұрын
The most important part of video is at 11:13 to 11:52 where they have explained how regular expression work, This alone makes the understandility of the concept very easy and all the examples were well explained.(Although there was one mistake in video) Thanks edureka for making such an amazing video
@edurekaIN
@edurekaIN 2 жыл бұрын
You're welcome 😊 Stay connected with our channel and team :) . Do subscribe the channel for more updates : ) Hit the bell icon to never miss an update from our channel : )
@naf_iya7225
@naf_iya7225 Жыл бұрын
one of the great tutorial ever 👏👏👏👏
@edurekaIN
@edurekaIN Жыл бұрын
Thank you 😊Glad it was helpful!!
@vasanthm6170
@vasanthm6170 4 жыл бұрын
Very helpful I spent hardly 2 hour of time and covered this topic completely. Thank you..!
@AdityaSauravadi_saurav
@AdityaSauravadi_saurav 2 жыл бұрын
your voice is very convincing. The way you teach is damn good. Thanks for your kind support
@edurekaIN
@edurekaIN 2 жыл бұрын
You're welcome 😊 Glad it was helpful!
@denisseadrianaorozco5988
@denisseadrianaorozco5988 6 жыл бұрын
Saludos desde Ecuador! Excelente tutorial :)
@JoshPeterson
@JoshPeterson 4 жыл бұрын
This was fantastic. Thank you!
@mayanksharma5540
@mayanksharma5540 2 жыл бұрын
Too much helpful and incredible practical explanation ❤❤
@edurekaIN
@edurekaIN 2 жыл бұрын
Thank you so much : ) We are glad to be a part of your learning journey. Do subscribe the channel for more updates : ) Hit the bell icon to never miss an update from our channel : )
@phaneshpadki3429
@phaneshpadki3429 6 жыл бұрын
nice tutorial.. but it looks like at 31:51 while explaining the regex u explained it wrongly. the numbers in the curly braces don't literally match with the numbers in the string, they only denote the length of the searched pattern. "\d[5}" will search for any 5 digit number. it wont check if the number has 5 in it. That's my understanding.
@phaneshpadki3429
@phaneshpadki3429 6 жыл бұрын
for example if u had 1235 instead of 1234 in you string then the expression "\d{5,7}" would not match that string (though it has 5 in it) as the length of 1235 is only 4.
@SSS-hm4pw
@SSS-hm4pw 6 жыл бұрын
Great video. On spot and rich. Well done. Make more.
@edurekaIN
@edurekaIN 6 жыл бұрын
Thank you for appreciating our work. We keep updating our channel regularly. Do subscribe and stay connected to us. Cheers :)
@kdroadie
@kdroadie 6 жыл бұрын
excellent tutorials nice work.
@edurekaIN
@edurekaIN 6 жыл бұрын
Thank you for watching our video. Do subscribe, like and share to stay connected with us. Cheers :)
@ramchandracheke
@ramchandracheke 5 жыл бұрын
Thank you very much ! God bless you 😊
@sushilraverkar007
@sushilraverkar007 5 жыл бұрын
Very nice explanation. I found exactly that I want. Thank you so much.
@35_akshaykeesari88
@35_akshaykeesari88 6 жыл бұрын
excellent video.....""""
@kunalsoni7681
@kunalsoni7681 4 жыл бұрын
awesome explanation 😊😊😊
@learnwith6879
@learnwith6879 5 жыл бұрын
Very nice explained. It helped me a lot.
@dragangosevski6425
@dragangosevski6425 7 жыл бұрын
Thanks for tutorials.Greetings from Serbia.
@anandhin235
@anandhin235 2 жыл бұрын
Thank you so much for sharing this awesome video. Grateful to you @edureka!!
@edurekaIN
@edurekaIN 2 жыл бұрын
We are super happy that Edureka is helping you learn better. Your support means a lot to us and it motivated us to create even better learning content and courses experience for you . Do subscribe the channel for more updates : ) Hit the bell icon to never miss an update from our channel : )
@semicolonacademy9599
@semicolonacademy9599 6 жыл бұрын
One of the best instructor in youtube ! Thanks a lot for this tutorial.
@edurekaIN
@edurekaIN 6 жыл бұрын
Hey Semicolon academy, thank you for watching our video. We are glad to know that you found it useful. Do subscribe and stay tuned for more such updates in the near future. Cheers :)
@ashishsahoo6394
@ashishsahoo6394 5 жыл бұрын
Regular expressions concepts explained very well, really helped me for the exam preparation, thanks a ton
@edurekaIN
@edurekaIN 5 жыл бұрын
Thank you for appreciating our work, Ashish. We are delighted to see learners like you on board with us. Do subscribe to the channel and hit the bell icon to never miss an update from us in the future. Cheers!
@PrAsHaNtHdUke1093
@PrAsHaNtHdUke1093 3 жыл бұрын
thanks a lot bro...upload more videos..........
@edurekaIN
@edurekaIN 3 жыл бұрын
We are super happy that Edureka is helping you learn better. Your support means a lot to us and it motivated us to create even better learning content and courses experience for you . Do subscribe the channel for more updates : ) Hit the bell icon to never miss an update from our channel : )
@abhishek-xv5ow
@abhishek-xv5ow 3 жыл бұрын
much Helpful , thanks a lot :)
@edurekaIN
@edurekaIN 3 жыл бұрын
Hey:) Thank you so much for your sweet words :) Really means a lot ! Glad to know that our content/courses is making you learn better :) Our team is striving hard to give the best content. Keep learning with us -Team Edureka :) Don't forget to like the video and share it with maximum people:) Do subscribe the channel:)
@rohitpant6473
@rohitpant6473 2 жыл бұрын
loved the session
@naramcharitha1150
@naramcharitha1150 3 жыл бұрын
Excellent lecture,thaks for the course
@edurekaIN
@edurekaIN 3 жыл бұрын
We are super happy that Edureka is helping you learn better. Your support means a lot to us and it motivated us to create even better learning content and courses experience for you . Do subscribe the channel for more updates : ) Hit the bell icon to never miss an update from our channel : )
@rbharu1133
@rbharu1133 6 жыл бұрын
Its a very nice tutorial, thank you edureka
@swarnachoppella388
@swarnachoppella388 4 жыл бұрын
Thank you.. Good information
@edurekaIN
@edurekaIN 4 жыл бұрын
You are welcome👍
@amitkumargupta6722
@amitkumargupta6722 4 жыл бұрын
one of the great tutorial ever .....
@tarekghosn3648
@tarekghosn3648 2 жыл бұрын
pure awesomeness
@kevalrajpal4244
@kevalrajpal4244 6 жыл бұрын
Excellent Service sir really appreciate your work. Thank you so much
@edurekaIN
@edurekaIN 6 жыл бұрын
Hey, glad you loved the video. Do subscribe and hit the bell icon to never miss an update from us in the future. Cheers!
@parthsachan1130
@parthsachan1130 6 жыл бұрын
GREAT!!!!!!!
@hardikpatel-dc9rc
@hardikpatel-dc9rc 4 жыл бұрын
good sir ,very very good thz a lot
@edurekaIN
@edurekaIN 4 жыл бұрын
You are welcome👍
@auroshisray9140
@auroshisray9140 4 жыл бұрын
great tutorial
@jadavnaveen1006
@jadavnaveen1006 2 жыл бұрын
exceelent
@kkp01
@kkp01 5 жыл бұрын
Brilliant for starters
@maxwellochieng4924
@maxwellochieng4924 6 жыл бұрын
an excellent tutorial. I love edureka
@edurekaIN
@edurekaIN 6 жыл бұрын
Thanks for the compliment Maxwel!
@viz3267
@viz3267 5 жыл бұрын
Your way of talking is too good....
@yasminshaik4935
@yasminshaik4935 7 жыл бұрын
Thanks for the tutorial. Also wondering if there's any tutorial for error handling in python?
@edurekaIN
@edurekaIN 7 жыл бұрын
Hey Yasmin, thanks for checking out our tutorial. We do not have a tutorial on this particular topic but you can find related tutorials here: kzbin.info/aero/PL9ooVrP1hQOHY-BeYrKHDrHKphsJOyRyu. You can also check out our complete training here: www.edureka.co/python.Do subscribe to our channel to stay posted on upcoming tutorials. Hope this helps. Cheers!
@anandnataraj6599
@anandnataraj6599 7 жыл бұрын
Excellent tutorial
@edurekaIN
@edurekaIN 7 жыл бұрын
Thank you for watching our video. Do subscribe, like and share to stay connected with us. Cheers :)
@RATANAGARWALITINFORMER
@RATANAGARWALITINFORMER 4 жыл бұрын
nice info
@0xayman
@0xayman 5 жыл бұрын
Brilliant explain
@pottalokesh2039
@pottalokesh2039 2 жыл бұрын
At 45:53 why it was taken like this in with two '\' in \(\d{3}\)
@geniusgamer337
@geniusgamer337 5 жыл бұрын
39:48
@truthprevails899
@truthprevails899 7 жыл бұрын
Thanks!
@edurekaIN
@edurekaIN 7 жыл бұрын
Thank you for watching our video. Do subscribe, like and share to stay connected with us. Cheers :)
@mousemouse1818
@mousemouse1818 5 жыл бұрын
nice article
@priyankaagrahari1073
@priyankaagrahari1073 6 жыл бұрын
good video
@dhanushabhandarkar6194
@dhanushabhandarkar6194 7 жыл бұрын
good job
@zeeshanqureshi9252
@zeeshanqureshi9252 5 жыл бұрын
1-Stop Shop Lot of Respect Sir.
@edurekaIN
@edurekaIN 5 жыл бұрын
Hey Zeeshan, thank you for appreciating our work. We are glad that you liked our video. Do subscribe to the channel and hit the bell icon to never miss an update from us in the future. Have a good day! 😊
@saptarshimazumder5252
@saptarshimazumder5252 6 жыл бұрын
Nice tuitorial , except it should be: "Keep the Red flag flying high Manchester United" XD
@edurekaIN
@edurekaIN 6 жыл бұрын
Haha Saptarshi, maybe we will use this in our upcoming tutorials! Do subscribe and stay tuned for more updates on our channel. Cheers :)
@prathamvardaan4187
@prathamvardaan4187 4 жыл бұрын
Nice
@gaganbhawsar3387
@gaganbhawsar3387 7 жыл бұрын
thanks for tutorials i want to ask what is the use of re.match
@edurekaIN
@edurekaIN 7 жыл бұрын
Hi Gagan, thanks for checking out our tutorial. If zero or more characters at the beginning of string match the regular expression pattern then re.match() will return a corresponding match object. It will return Null, if the string does not match the pattern. Hope this helps. Cheers!
@thehalasoft
@thehalasoft 6 жыл бұрын
It returns the number of matches found.
@pawaryash007
@pawaryash007 6 жыл бұрын
Hi, which shell or editor or idle you have used to run the codes?
@edurekaIN
@edurekaIN 6 жыл бұрын
Hey Pawar, Have used Pycharm community edition 2016.3.2.
@andriiburka
@andriiburka 4 жыл бұрын
love indian lessons
@ManinderSinghSidhu89
@ManinderSinghSidhu89 5 жыл бұрын
the example you used "Sat, mat , pat hat", it is clear why to use r"[smph]at". but what if we have words like "skin, din, pin, spin" all these words are ending with "in" but starting is little complex. And if we want to find only "Skin" and "pin", How to do it here????
@edurekaIN
@edurekaIN 5 жыл бұрын
Hi, this is simple to do. You can have something that goes like [a-z]*in where we can have any number of characters before in. Hope this helps you out.
@harishsivasubramanian161
@harishsivasubramanian161 6 жыл бұрын
Can we use Regex to match pattern between strings from two separate list?
@edurekaIN
@edurekaIN 6 жыл бұрын
Hey Harish, Yes, it can be done. Cheers!
@gouravbatra3656
@gouravbatra3656 6 жыл бұрын
difference between re.findall[ABCd][ab] and re.findall[ABCd]ab
@edurekaIN
@edurekaIN 6 жыл бұрын
Hey Gorav, re.findall[ABCd][ab] searches for letter in [ABCd] and followed by 'a' or 'b' while in re.findall[ABCd]ab the pattern is matched only if it ends with ab. Hope this helps!
@Varunsharma-sg2nt
@Varunsharma-sg2nt 5 жыл бұрын
What is the significance of 'r'? re.findall(r'' ", string)
@edurekaIN
@edurekaIN 5 жыл бұрын
Hi Varun, the r string prefix is not specifically related to regex's, but to strings generally in Python. Normal strings use the backslash character as an escape character for special characters. The r prefix tells the interpreter not to do this.
@Varunsharma-sg2nt
@Varunsharma-sg2nt 5 жыл бұрын
@@edurekaIN Yes Got it Raw string right
@scotthjackson5651
@scotthjackson5651 5 жыл бұрын
What's the regex for finding words that end with the letter "s"?
@edurekaIN
@edurekaIN 5 жыл бұрын
Hi Scott, You can use this: regex = r'\b(#\w*[^#\W]|[^#\W]\w*#)\b'.replace('#', letter) Hope this helps. Cheers!
@anuhyaakkineni4939
@anuhyaakkineni4939 6 жыл бұрын
what does span() function do??
@edurekaIN
@edurekaIN 6 жыл бұрын
Hey Anuhya, span() returns both start and end indexes in a single tuple.
@Niranjan-f8w
@Niranjan-f8w 6 жыл бұрын
What is span()
@mayukhbanerjee8877
@mayukhbanerjee8877 5 жыл бұрын
How do we replace a string
@edurekaIN
@edurekaIN 5 жыл бұрын
To do this in Python, use the sub function. sub takes up to 3 arguments: The text to replace with, the text to replace in, and, optionally, the maximum number of substitutions to make.
@SanjitKumar-hw9hd
@SanjitKumar-hw9hd 6 жыл бұрын
for your knowledge -> c++ is also a programming language
@mulpurikalikiran3483
@mulpurikalikiran3483 4 жыл бұрын
what is r
@edurekaIN
@edurekaIN 4 жыл бұрын
Indicates that the string needs to be treated as a raw string. Hope that solves your query.
@akshaypatel1362
@akshaypatel1362 5 жыл бұрын
:)
@howtocode2054
@howtocode2054 2 жыл бұрын
Very well explained.
@jerrygeorge180
@jerrygeorge180 3 жыл бұрын
Nice tutorial thanks a lot
@edurekaIN
@edurekaIN 3 жыл бұрын
Thank you so much for the review ,we appreciate your efforts : ) We are glad that you have enjoyed your learning experience with us .Thank You for being a part of our Edureka team : ) Do subscribe the channel for more updates : ) Hit the bell icon to never miss an update from our channel : )
@shubhoo_7781
@shubhoo_7781 Жыл бұрын
thanks a lot
@edurekaIN
@edurekaIN Жыл бұрын
You’re welcome 😊
@mohamedswadiquek6132
@mohamedswadiquek6132 6 жыл бұрын
Excellent tutorial
@OneMinuteFactsz
@OneMinuteFactsz 5 жыл бұрын
What does re.compile do? Pls expain
@edurekaIN
@edurekaIN 5 жыл бұрын
We can combine a regular expression pattern into pattern objects, which can be used for pattern matching. It also helps to search a pattern again without rewriting it. Hope this is helpful! Cheers!
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
How Strong Is Tape?
00:24
Stokes Twins
Рет қаралды 96 МЛН
Regular Expression Tutorial Python | Python Regex Tutorial
25:29
codebasics
Рет қаралды 139 М.
Regular Expressions in Python
18:58
NeuralNine
Рет қаралды 81 М.
Regular Expressions in Python - FULL COURSE (1 HOUR) - Programming Tutorial
1:04:48
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН