text stringlengths 1 81 | start float64 0 10.1k | duration float64 0 24.9 |
|---|---|---|
to look for the username at the | 2,292.839 | 3.321 |
beginning of the string from the user | 2,294.119 | 4.161 |
and we're looking for the edu literally | 2,296.16 | 4.4 |
at the end of the string from the user | 2,298.28 | 4.96 |
those dots are a little too encompassing | 2,300.56 | 4.6 |
right now I am allowed to type in more | 2,303.24 | 4.839 |
than the single at sign why because at | 2,305.16 | 4.959 |
is a character and Dot means any | 2,308.079 | 3.881 |
character so honestly I can have as many | 2,310.119 | 3.841 |
at signs is this thing at the moment as | 2,311.96 | 4.28 |
I want for instance if I run python of | 2,313.96 | 5.119 |
validate dopy maen harvard.edu still | 2,316.24 | 5.56 |
works as expected but if I also run | 2,319.079 | 4.881 |
python of validate dopy and incorrectly | 2,321.8 | 5.68 |
do mail harvard.edu that should be | 2,323.96 | 6.28 |
invalid but it's considered valid | 2,327.48 | 4.56 |
instead so I think we need to be a | 2,330.24 | 4.76 |
little more restrictive when it comes to | 2,332.04 | 5.039 |
that dot and we can't just say oh any | 2,335 | 4.68 |
old character there is fine we need to | 2,337.079 | 5.321 |
be more specific well it turns out that | 2,339.68 | 4.84 |
regular Expressions also support this | 2,342.4 | 5.08 |
syntax you can use square brackets | 2,344.52 | 5.44 |
inside of your pattern and inside of | 2,347.48 | 5.56 |
those square brackets include one or | 2,349.96 | 5.119 |
more characters that you want to look | 2,353.04 | 3.079 |
for | 2,355.079 | 3.721 |
specifically alternatively you can | 2,356.119 | 4.881 |
inside of those square brackets put a | 2,358.8 | 4.24 |
carrot symbol which unfortunately in | 2,361 | 3.76 |
this context means something completely | 2,363.04 | 3.44 |
different from match the start of the | 2,364.76 | 3.96 |
string but would be the complement | 2,366.48 | 4.24 |
operator inside of these square brackets | 2,368.72 | 4.32 |
which means you cannot match any of | 2,370.72 | 4.639 |
these characters so things are about to | 2,373.04 | 4.279 |
look even more cryptic now but that's | 2,375.359 | 3.76 |
why we're focusing on regular | 2,377.319 | 4.321 |
Expressions on their own here if I don't | 2,379.119 | 5.2 |
want to allow any character which is | 2,381.64 | 5.439 |
what a DOT is let me go ahead and I | 2,384.319 | 5 |
could just say well I only want to | 2,387.079 | 6.161 |
support a or B's or C's or D's or E's or | 2,389.319 | 5.721 |
FS or G's I could type in the whole | 2,393.24 | 3.76 |
alphabet here plus some numbers to | 2,395.04 | 3.799 |
actually include all of the letters that | 2,397 | 4.2 |
I do want to allow but honestly a little | 2,398.839 | 5 |
simpler would be this I could use a | 2,401.2 | 6.159 |
carrot symbol and then in at sign which | 2,403.839 | 6.081 |
has the effect of saying this is the set | 2,407.359 | 5.76 |
of characters that has everything except | 2,409.92 | 5.56 |
an at sign and I can do the same thing | 2,413.119 | 4.801 |
over here instead of a DOT to the right | 2,415.48 | 5 |
of the at sign I can do Open | 2,417.92 | 6.24 |
Bracket carrot at sign and I admit | 2,420.48 | 5.599 |
things are starting to escalate quickly | 2,424.16 | 3.72 |
here but let's start from the left and | 2,426.079 | 4.841 |
go to the right this carrot outside of | 2,427.88 | 4.56 |
the square brackets at the very start of | 2,430.92 | 3.84 |
my string as before means match from the | 2,432.44 | 4.44 |
start of the string and let's Jump Ahead | 2,434.76 | 3.88 |
the dollar sign all the way at the end | 2,436.88 | 3.84 |
of the regular expression means match at | 2,438.64 | 4.04 |
the end of the string so if we can | 2,440.72 | 3.359 |
mentally tick those off as | 2,442.68 | 3.36 |
straightforward let's now focus on | 2,444.079 | 4.321 |
everything else in the middle well to | 2,446.04 | 4.64 |
the left here we have new syntax a | 2,448.4 | 6.04 |
square bracket another carrot an at sign | 2,450.68 | 6.24 |
and a closed square bracket and then a | 2,454.44 | 4.879 |
plus the plus means the same thing as | 2,456.92 | 4.8 |
always it means one or more of the | 2,459.319 | 4.881 |
things to the left what is the thing to | 2,461.72 | 5.119 |
the left well this is the new syntax | 2,464.2 | 4.6 |
inside of square brackets here I have a | 2,466.839 | 4.52 |
carrot symbol and then an at sign that | 2,468.8 | 5.559 |
just means any character accept an at | 2,471.359 | 5.401 |
sign it's a weird syntax but this is how | 2,474.359 | 5.121 |
we can express that simple idea any | 2,476.76 | 5.72 |
character on the keyboard except for an | 2,479.48 | 4.92 |
at sign and heck even other characters | 2,482.48 | 3.4 |
that aren't physically on your keyboard | 2,484.4 | 3.84 |
but that nonetheless exist | 2,485.88 | 4.52 |
then we have a literal at sign then we | 2,488.24 | 3.879 |
have another one of these same things | 2,490.4 | 4.16 |
square bracket carrot at close bracket | 2,492.119 | 4.281 |
which means any character accept an at | 2,494.56 | 4.48 |
sign then one or more of those things | 2,496.4 | 5.52 |
followed by literally a period | 2,499.04 | 5.92 |
U so now let me go ahead and do this | 2,501.92 | 5.679 |
again let me rerun python of validate | 2,504.96 | 4.399 |
dopy and test my own email address to | 2,507.599 | 4.041 |
make sure I've not made things worse and | 2,509.359 | 3.921 |
we're good now let me go ahead and clear | 2,511.64 | 3.24 |
my screen and run python of validate | 2,513.28 | 2.96 |
dopy again and do | 2,514.88 | 4.88 |
mailin at harvard.edu crossing my | 2,516.24 | 5.92 |
fingers this time and finally this now | 2,519.76 | 5.559 |
is invalid why I'm allowing myself to | 2,522.16 | 5.32 |
have one at sign in the middle of the | 2,525.319 | 4.76 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.