Novice to Advanced RegEx in Less-than 30 Minutes + Python
A full tutorial covering everything you need to know about Regular Expressions - an essential for anyone learning to code - and even more so for anyone interested in Natural Language Processing.
This video includes:
- metacharacters
- quantifiers
- capture groups
- using capture groups in Python
- character sets
- look-ahead and look-behind assertions
- negative look-ahead and look-behind assertions
- inline modifiers
- passing modifiers as function parameters in Python
- conditionals (if-else statements for RegEx)
- re.match
- re.search
- re.findall
We cover all of this in-depth in this tutorial, incl. examples all the way through on RegEx101 (an interactive debugging/regex building tool) and also in Python.
🤖 70% Discount on the NLP With Transformers in Python course:
bit.ly/3DFvvY5
Пікірлер: 28
I watched about 4 videos about regex and this one covered everything plus extra syntax not covered in the other videos. I will argue that this is the best tutorial on regex on youtube. Thank you so much for sharing it
Thanks a lot James. I really appreciate your effort in teaching RegEx. I have wanted to learn it properly for a long time and I finally got to it!
Awesome video. Very helpful and informative. Thank you so much.
You did a really good job on this video. The progression on the step-by-step is very smooth, you are a good teacher, congratulations.
@jamesbriggs
Жыл бұрын
Thanks Sergio I appreciate it
Awesome video, keep up the amazing work! :)
this is what I was looking for. Thank you😇
Thank you James! Very useful ;)
AWESOME GUIDE
Great video mate
Thanks a lot mate
I'm on 19:25 in the video and already I'm thinking this is one of the best regex tutorials I've seen! Simply awesome work!
@jamesbriggs
2 жыл бұрын
That's awesome, thanks!
Great explanation
Amazing!!!
very useful. I shared this video with my LinkedIn network and students as well.
@jamesbriggs
2 жыл бұрын
awesome, thankyou!
can you elaborate a bit more on (:?) ? not quite follow ...thanks
Thanks James for the wonderful tutorial. I am a beginner to text extraction and have a question. I am trying to extract text from PDF file i.e. report. I was able to extract the text but the output is weird. There are unnecessary space between the characters. For example 'Chang ing cult ivation t echniq uesConservation t illag e' which should have been "Changing cultivation techniques Conservation till age..." How can solve this problem? I would be grateful to your support.
@jamesbriggs
Жыл бұрын
I'm not sure, but chances are this is a defect with the PDF reader/converter. PDFs are honestly awful to process (accurately) with Python 😅 In the past I ended up using a tool called Abbyy OCR. Despite being 'OCR' it works really well for digital documents too (not just handwritten), there is a cost but worth it imo. Free alternative could by PyTesseract but it's not as accurate
@Miyazaki97
Жыл бұрын
@@jamesbriggs Thank you for your kind response. I will try to use PyTesseract
quite useful this video, I was looking for something like this: I have: apl_teste1 apl_teste2 apl_teste3 and i want to get all these words that starts with "apl_" and return it
@darkpaladin9982
2 жыл бұрын
pattern = r'apl_\w*'
@lastchance1036
7 ай бұрын
I think you could use a capturing group using "apl_(\w+)" Or a look behind method of "(?
Thank so much love from pakistan
@jamesbriggs
Жыл бұрын
you're welcome thanks for watching!
U can't believe this only has 367 "thumbs up"