r'\S+@\S+' worked nicely as a pattern for me when looking for an email. Of course this assumes there is whitespace infront of and after the email address.
Has anyone seen the re.match() expression occur in Iron Man 2? Look closely at the screens when Ivan Vanko builds his lightning thingy. The code pretty much looks like python.
Does anybody know why I cannot get baby*.html to work in windows 7? It doesn't seem to break it into a list of all files starting with baby, but instead just tries to open a file called baby*.html. When the script tries to open that file the program crashes.
I'm also wondering how to get baby* to work, even using the posted solution code, it just tries to open a file exactly named 'baby*.html' Did you figure it out, or is it just a "windows thing?"
@ThunderAppeal couldn't you write/find your own regular expressions module that you prefer? you're not tied down to the module that ships with python...
@JettPrograms I'm not in the business of writing modules. Why cant python ship with regexp built in the right way like perl? And why is regexp in a seperate 'module' in the first place? What kind of stupid thing is that that I should have to write my own module for something as basic as regexp? If I were google and had deep pockets and employed programmers who have nothing better to do all day than write modules I might cook something up.
They should have mic'ed the question-askers in the audiance a LOT better. Or at least have the lecturer repeat the questions a little better before answering. It's REAL annoying not being able to hear the questions. Otherwise an excellent coverage and presentation.
what you'd call a pig with 3 eyes?
piiiig @_@
repickmukalw 1 month ago
Trinity lul
Beriaal 2 months ago
PIIIG hahahahahaha
Beriaal 2 months ago
Baby Names Database! :P
Siddharthpritam 2 months ago
Class Day is almost over.
DartGreene 3 months ago
Does anybody know what will be the pattern you need to use to get the 5th, 7th or 13th character of a string????
LikeToLMFAO 3 months ago
@LikeToLMFAO no need for a search, just use the index value. e.g. stringVar='this is the string' then the 3rd character ('i') is simply stringVar[2]
Gr1pp717 2 months ago
@Gr1pp717 thx!!!!
LikeToLMFAO 2 months ago
hetalksreallyfast!
justinrixx 5 months ago
Reminds me of Hawkeye from M*A*S*H*, I wish he could be my lecturer for everything.
gcndavidmn 5 months ago 6
This is definately a suspenseful video... I almost wet myself when he got to re.findall
scottreddenify 7 months ago 6
@scottreddenify :D
guptachirag 6 months ago
whenever things get interesting, it means you're gonna be in big trouble :)
swagatata 7 months ago
r'\S+@\S+' worked nicely as a pattern for me when looking for an email. Of course this assumes there is whitespace infront of and after the email address.
Zeldakitteh 8 months ago in playlist Google Python Class
3 people find regular expressions too hard.
genesiswave117 8 months ago 3
piiiiig!
kyerussell 9 months ago 5
hahahahahaha piiig
curryeater259 9 months ago
someday everybody will be able to program. It will be even easier..
evanarke 10 months ago
THE CUP IS BACK!!! OMG!!!
TheZigius1 10 months ago 4
@TheZigius1 ITS GOING TO FALL
xxbondsxx 10 months ago
@xxbondsxx as long as it doesnt land on ur freakin' head...leave the cup alone
freakyinsanity 10 months ago
BIIIIIG FAAAAN !!!!
mightyjoeyoung1979 11 months ago
Has anyone seen the re.match() expression occur in Iron Man 2? Look closely at the screens when Ivan Vanko builds his lightning thingy. The code pretty much looks like python.
MrXStark 11 months ago
@MrXStark Damn, now I'll have to watch it all over again.
anzwertree 11 months ago
I've never used regular expressions in Python before
ExpressionsRegular 1 year ago
Does anybody know why I cannot get baby*.html to work in windows 7? It doesn't seem to break it into a list of all files starting with baby, but instead just tries to open a file called baby*.html. When the script tries to open that file the program crashes.
im2emo4myshrt 1 year ago
@im2emo4myshrt paste your actual script on a code share site (like pastebin) , link it back here, and then maybe someone can help you
SMERSH009X 10 months ago
@im2emo4myshrt
I'm also wondering how to get baby* to work, even using the posted solution code, it just tries to open a file exactly named 'baby*.html' Did you figure it out, or is it just a "windows thing?"
Ryshu 6 months ago
On Windows, the shell doesn't do it for you. Try using a batch file to launch it:
for %%f in (c:\google-python-exercises\babynames\baby*.html) do call babynames.py --summaryfile %%f
guywithpaddle 2 months ago
This has been flagged as spam show
Kind notice for you Latin women ** rockmycity.info **
IdhkmMjdki 1 year ago
This has been flagged as spam show
Greatest Be Naughty women benaughtyman.info
jayanikakonara 1 year ago
Baby names database? Are congratulations in order?
bswopes 1 year ago
It's not a regular expression dot, it's just a regular dot.
Genius
thebaron897 1 year ago 4
ahhaa "okay well theres some poorly written css and whatever." classic. this teacher is the man.
TheBustyGamer 1 year ago 6
Anyone know how to run the assignment program on all the babyname files when using windows? I 'as error....
HollowMarkeD 1 year ago
social security administration baby names....?
JettPrograms 1 year ago
Regexp implementation in python is absolutely horrid, it is a friggin nightmare.
Perl's regexp is so much easier to utilize.
Python is so OOP crazy that they've convoluted the whole purpose that regexp is supposed to make extracting text/data easier.
One would think that considering that the python programmers lifted so much from perl they would have lifted this the same.
ThunderAppeal 1 year ago
@ThunderAppeal couldn't you write/find your own regular expressions module that you prefer? you're not tied down to the module that ships with python...
JettPrograms 1 year ago
@JettPrograms I'm not in the business of writing modules. Why cant python ship with regexp built in the right way like perl? And why is regexp in a seperate 'module' in the first place? What kind of stupid thing is that that I should have to write my own module for something as basic as regexp? If I were google and had deep pockets and employed programmers who have nothing better to do all day than write modules I might cook something up.
ThunderAppeal 1 year ago
he says "like" enought o sink a ship
bunniboo1414 1 year ago
Piiig.
Well... Alrighty then!
Dejital 1 year ago
Awesome Netscape T-shirt!
Real shame they went under, damn MS [insert favourite swear word here]
ninetaildemon81 1 year ago
how much adderall XR is this guy on
sodahawk 1 year ago
ummm allrighteee then
graveF34R 1 year ago
They should have mic'ed the question-askers in the audiance a LOT better. Or at least have the lecturer repeat the questions a little better before answering. It's REAL annoying not being able to hear the questions. Otherwise an excellent coverage and presentation.
a11acce55 1 year ago
i love the way he talks
darksaga2006 1 year ago 5
loving these python classes :)
zeffii 1 year ago
Wow, this is super useful. I've never used regular expressions in Python before. This is awesome
anzwertree 1 year ago
Personable guy. Easy to follow....
And at only 9:00, I've found 20 places to apply this.
Foaman 1 year ago 8
nerd
LOLSecliques 1 year ago
Allrighty!
niesloanfreddy 1 year ago 100
@niesloanfreddy Made my day! :d
quigonjinntte 7 months ago
I like his 'N' shirt. classic.
kamsky1975 1 year ago 52
@kamsky1975 how the hell does he still have a netscape shirt :S
sacredgeometry 11 months ago