text stringlengths 1 81 | start float64 0 10.1k | duration float64 0 24.9 |
|---|---|---|
backslash in the world of regular | 1,608.48 | 3.88 |
Expressions this is a so-called special | 1,610.399 | 4.081 |
sequence and it indicates per this | 1,612.36 | 3.96 |
backslash and a single dot that I | 1,614.48 | 4.04 |
literally want to match on a DOT it's | 1,616.32 | 3.88 |
not that I want to match on any | 1,618.52 | 4 |
character and then edu I want to match | 1,620.2 | 5.76 |
on a DOT or a period edu but we don't | 1,622.52 | 5.84 |
want python to misinterpret this | 1,625.96 | 4.8 |
backslash is beginning a an escape | 1,628.36 | 3.96 |
sequence something special like backs | 1,630.76 | 3.2 |
slash n which even though we as the | 1,632.32 | 3.2 |
programmer might type two characters | 1,633.96 | 3.92 |
backslash in it really is interpreted by | 1,635.52 | 4.72 |
python as a single new line we don't | 1,637.88 | 4.36 |
want any kind of misinterpretation like | 1,640.24 | 3.96 |
that here so it turns out there's one | 1,642.24 | 3.28 |
other thing we should do for regular | 1,644.2 | 3.359 |
expressions like this that have a backs | 1,645.52 | 4.68 |
slash used in this way I want to specify | 1,647.559 | 4.921 |
to python that I want this string this | 1,650.2 | 4.12 |
regular expression in double quotes to | 1,652.48 | 4.199 |
be treated as a raw string literally | 1,654.32 | 3.76 |
putting an r at the beginning of the | 1,656.679 | 3 |
string to indicate to python that you | 1,658.08 | 3.4 |
should not try to interpret any | 1,659.679 | 4.281 |
backslashes in the usual way I want to | 1,661.48 | 4.4 |
literally pass the backslash and the dot | 1,663.96 | 4 |
and the edu into this particular | 1,665.88 | 4.519 |
function search in this case so it's | 1,667.96 | 4.48 |
similar in spirit to using that F at the | 1,670.399 | 3.921 |
beginning of a format string which of | 1,672.44 | 3.68 |
course tells python to format the string | 1,674.32 | 3.88 |
in a certain way plugging in variables | 1,676.12 | 3.84 |
that might be between curly braces but | 1,678.2 | 4.599 |
in this case r indicates a raw string | 1,679.96 | 5.719 |
that I want passed in exactly as is now | 1,682.799 | 4.801 |
it's only strictly necessary if you are | 1,685.679 | 4.521 |
in fact using backslashes to indicate | 1,687.6 | 4.24 |
that you want some special sequence like | 1,690.2 | 3.599 |
backslash dot but in general it's | 1,691.84 | 3.839 |
probably good habit to get into to just | 1,693.799 | 4.081 |
use raw strings for all of your regular | 1,695.679 | 3.72 |
Expressions so that if you eventually go | 1,697.88 | 3.48 |
back in make a change make an addition | 1,699.399 | 3.52 |
you don't accidentally introduce a | 1,701.36 | 3.6 |
backslash and then forget that that | 1,702.919 | 3.6 |
might have some special or | 1,704.96 | 3.76 |
misinterpreted meaning well let me go | 1,706.519 | 3.481 |
ahead and try this new regular | 1,708.72 | 3.24 |
expression I'll clear my terminal window | 1,710 | 5.48 |
run python of validate run python of | 1,711.96 | 5.839 |
validate dopy and then I'll type in my | 1,715.48 | 4.72 |
email address correctly maen harvard.edu | 1,717.799 | 4.961 |
and that's fortunately still valid Let | 1,720.2 | 4.28 |
Me Clear My screen and run it one more | 1,722.76 | 4.2 |
time python of validate dopy and this | 1,724.48 | 5.559 |
time let's mistype it as maen Harvard | 1,726.96 | 5.4 |
questionmark edu whereby there's | 1,730.039 | 4.041 |
obviously not a DOT there but there is | 1,732.36 | 4.08 |
some other Single Character that last | 1,734.08 | 4.52 |
time was misinterpreted as valid | 1,736.44 | 4.359 |
but this time now that I've improved my | 1,738.6 | 4.799 |
regular expression it's discovered as | 1,740.799 | 6.521 |
indeed invalid any questions now on this | 1,743.399 | 6.721 |
technique for matching something to the | 1,747.32 | 4.56 |
left of the at sign something to the | 1,750.12 | 4.96 |
right and now ending with edu explicitly | 1,751.88 | 6.08 |
um what happens when use | 1,755.08 | 5.36 |
that a good question and you kind of | 1,757.96 | 3.959 |
called me out here well when in doubt | 1,760.44 | 4.52 |
let's try let me go ahead and do python | 1,761.919 | 5.12 |
invalidate dopy | 1,764.96 | 5.839 |
mailin harvard.edu which also is | 1,767.039 | 6.24 |
incorrect unfortunately my code thinks | 1,770.799 | 5 |
it's valid so another problem to solve | 1,773.279 | 4.601 |
but a shortcoming for now other | 1,775.799 | 4.561 |
questions on these regular Expressions | 1,777.88 | 6.679 |
thus far can you use curly brackets M | 1,780.36 | 6.919 |
instead of backslash can you use curly | 1,784.559 | 4.401 |
brackets instead of backslash not in | 1,787.279 | 3.361 |
this case if you want a literal dot | 1,788.96 | 3.959 |
backslash dot is the way to do it | 1,790.64 | 4.12 |
literally how about one other question | 1,792.919 | 4.76 |
on regular Expressions is this the same | 1,794.76 | 5.519 |
thing that that Google forms uses in | 1,797.679 | 5.561 |
order to categorize data in let's say | 1,800.279 | 5.721 |
some if you've got multiple people | 1,803.24 | 6.08 |
sending in requests about some feedback | 1,806 | 5.76 |
do they categorize the data that they | 1,809.32 | 4.52 |
get using this particular regular | 1,811.76 | 3.6 |
expression thing indeed if you've ever | 1,813.84 | 3.719 |
used Google forms to not just submit it | 1,815.36 | 4.72 |
but to create a Google form one of the | 1,817.559 | 4.921 |
menu options is for response validation | 1,820.08 | 4.24 |
in English at least and what that allows | 1,822.48 | 3.52 |
you to do is specify that the user has | 1,824.32 | 5.68 |
to input an email address or URL uh or a | 1,826 | 5.88 |
string of some length but there's an | 1,830 | 3.6 |
even more powerful feature that some of | 1,831.88 | 3.519 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.