Комментарии:
Hey man are you from uk or usa btw?
ОтветитьGood video.
ОтветитьLearning with your videos makes it much more fun, you're a great teacher.
And thank you for your interaction with your viewers!
I always hate regular expressions
ОтветитьHello ^_^
I want to know how to brute force a .zip or .exe file for get password ?
Didn't find your search a file for word at the link you have posted or did I do something incorrect?
ОтветитьTried running your lookup.py script on my windows machine and all it did was open my pyscripter with the script presented.
ОтветитьOne correction for re.match()
it is NOT for matching the whole string, but the beginning of the string. i.e. if searched pattern located in the beginning of the string, and you are using re.match(), then it will be found.
example:
line = "think I understand regular expression"
matchResult = re.match('think', line, re.M|re.I)
This will result in
Match Found: think
Hi Draps,
Can you please let me know what the advantage of re is compared to searching/replacing using Python string built in methods. i.e. "myString".find("myWord") vs, re.search("myWord", "myString") ?
Hi.
I have problem finding words witch regex . I want the pattern to find the words that does not contain 'ion' at the end of them so i tried this pattern \b\w+(?!hound)\b but I don't know why it returns all the words and does not work.so any idea about the pattern?
Hey man I appreciate the video. Wish it went into detail about argparse, how the lookup.py file worked and regex syntax. Thanks.
ОтветитьI try to find some text by name in text.txt, i get error someone help ?
import re
import argparse
def Main():
namefile = input("Enter name of what do you want to find: ")
searchFile = open("testing.txt","r")
lineNum = 0
for line in searchFile.readLines():
line = line.strip('\n\r')
lineNum += 1
searchResult = re.search(namefile , line, re.M|re.I)
if searchResult:
print(str(lineNum) + ': ' + line)
else:
print("Nothing found in search")
searchFile.close()
if _name_ == '__main__':
Main()
It's O as in Olaf not 0 as the number for the measurement of computional complexity
Ответитьwhy are u using argparse instead of import sys. then use sys.argv[1]
Ответитьgreat work
Ответитьwhat if you want to extract just a portion of a long word? is it possible?
ОтветитьNot advanced at all
ОтветитьGreat video. But i have a question i am new to python and doing basic code is there a way to use if statement to match two different dataframe?
ОтветитьHello, thank you a lot for your amazing tutorials. I think i don't see how >>> re.search("cat","cats are cute") is different from >>> "cat" in "cats are cute". If you use the latter, the match found is the string "cat"
ОтветитьI had to stop the video and log into my google account and allow them to know what video I watch to say: REJEX?
WTF ITs regex g as in "God! who pronounces it as reJex!"
A mistake: to have a result from re.match, it doesn't need to match the entire string, but match from the beginning of the string.
Ответить