Python tutorial - Python Regular Expression - How to use Regex in Python Regex Search - re.Search

Pubblicato il: 05 settembre 2023
sul canale di: KeeshtuTechnology
22
0

Free Python tutorial for beginners-Python Programming-Regular Expressions - Regex-Search()-re.Search


Subscribe Here -https://www.youtube.com/@KeeshtuTechn...

#python#pythonprogramming #pythontutorial #pythonforbeginners #pythonclass #youtubechannel #pythoninstallationcomplete #pythonhowtoinstall #pythoninstall #pythondownload #pythontutorialfree #pythonyoutube #pythonenglish #pythonenglish #pythonexecvseval #pythonexec()vseval() #pythonexec() #pythoneval() #youtubeviews #pythondef #pythondef() #pythonfunctions #pythonfullcourse #pythonregularexpressions #pythonregex #pythonre.search() #pythonsearch()
Please Captions on - Python in English, Python in Tamil, Python in Telugu, Python in Malayalam, Python in Chinese, Python in Japanese, Python in German, Python in Hindi, Python in French, Python full course for beginners

------------------------------------------------------
hello welcome to technology platform so today we are going to see like um search in regular expression let me open idle now let's see this so here I'm going to use it import re and then I'm going to print sorry I'm okay directly we can print it print off re dot match sorry search this is search I can say like this I want to search

this string this is Python tutorial and now like this yes you're able to get this record now instead of this I just pass a and a also you're getting it in 21 wording here I can say like python here also it is able to search it so earlier match we could see like the starting letter only searching but here anywhere the character is present or word is present it is working fine now one more big example we can see here I can defining my pattern like the first wording should be starters this in the list that all should be picked up that is what mine content is now what I am going to say here is that single quotes this cap character means starting line should be start with this take those wording from my string now my string equal to I can say like in the list I can say like this is Python tutorial and then this is a regular expression chapter and this is search example

and not this it is not starting with this so I can say like this now I want to find it out far I in my string colon here I want to say like if r e dot search of my button comma my string colon print now I want to do some pattern so because of that I can say like f formatting and then single quotes this is match hyphen and then putting in that string I okay here also it should be I it's not my string so it should be I so here also I single quotes and then close it else we can oh

else we can say like print of same F formatting this is not match which is not match that I want to say that one is like I it should be bring it I now okay pattern spelling mistake now I am going to run it now see this so this character this is matched this is Python tutorial starting letter is this so it is mesh and here also this is Rex chapter matched and this is search example mash and not this so not this is not starting with this so because of that it is not matched whenever the Cara the wording is starting letter starting wording is this then it should be matched like this our is producing the same result but instead of that you can use it something like my pattern right so instead of my button you can say like some dollar symbol is also so dollar symbol we can say like if any dollar symbol ends with

um we can say like something differently let's see

so here I am going to say like my pattern here I can say like

chapter I'll say something or I will say like ends not ends say something like page number Pages like that I can say something okay and then in my string I'm going to say like this is chapter one Pages something like this this is

this is chapter 2.

2 Pages like I can say like

first pages

and second Pages like that I can say something and third thing this is chapter 3 but there is no Pages ending with this like this now okay what is the issue here oh my string equal to okay

my string equal to now I am going to write it this one my button is like it it is not this one it should be like my pattern should be like dollar I just use something wrong so here I can say like it should be dollar then only it will work fine fine let's see

so ends with dollar so I can say like

my button I can say like pages and dollar like this I can say this is the pattern

you can use it like this and let's see see this is matched first pages and second pages and third one is not matched so because of this dollar symbol it is not ends with pages so because of that it is not providing the result and it is providing not mesh and see you in some more interesting chapters in the upcoming session thank you bye


In questa pagina del sito puoi guardare il video online Python tutorial - Python Regular Expression - How to use Regex in Python Regex Search - re.Search della durata di ore minuti seconda in buona qualità , che l'utente ha caricato KeeshtuTechnology 05 settembre 2023, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 22 volte e gli è piaciuto 0 spettatori. Buona visione!