Python tutorial - Python Regular Expression Regex - How to use Regex in Python

preview_player
Показать описание
Python tutorial - Python Regular Expression Regex - How to use Regex in Python

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

---------------------------------------Transcript-------------------------------------
hello welcome to technology platform so today we are going to see like regular expressions for find all split and substitute so three things we can say today let me open idle

where it is another a so we only use it one okay and so this is we are missing this one so three a it is pushing out now I can say like numbers like hyphen one hyphen two like that I am just using it now if I say something like slash d and then I can say like my string now let's see

okay so find all it is not let's use it plus symbol sometimes it won't work okay might be the slash is different let's see use it different slash yeah this slash yeah so if you use this slash D wherever this minus 1 is and 2 is present so the numbers it will write to the digits wherever the digits is available you just pull it out this is called like find on and second thing is like um what we've seen yeah split so the split is like that is very simple so I can say like my string only you can pick it up so wherever space is available I can use it underscore I am just splitting right no sorry this is split right so wherever it is using space you can split it just separate as a separate separate word like that now let's see r a DOT split and then we can say like this last is something different here this slash and then I can say like my string now see this this is a separate word this is a separate word Python tutorial it is separated everything based on the space for example if you use it like uh if it uses something like hyphen here something here you can split it here Python tutorial and Rex chapter and now let's see this how it works I can say like hyphen so here how it is separated this is python this is separated and tutorial and this Rex is one word and after hyphen this is chapter so like that it will split the value so this is called like split and

let's see last one substitute substitute means sub that is so we are replacing some value that is called like sub let's see now I can say like R A dots above wherever this is available I can use it um so I can say like and is available that I can say like ambison like that I am going to change in this my string I will see this and is changed here so this is some kind of regular expression so we have already seen like search match and we also seen like split and this one is up and find all so we have mostly we covered up everything here so see you some other topics in the next class bye
Рекомендации по теме