text stringlengths 1 81 | start float64 0 10.1k | duration float64 0 24.9 |
|---|---|---|
user's input but everything to the left | 2,527.48 | 5.599 |
per this new syntax cannot be an at sign | 2,530.079 | 5.921 |
it can be anything but one or more times | 2,533.079 | 4.721 |
and everything to the right of the at | 2,536 | 4.359 |
sign can be anything but an at sign one | 2,537.8 | 5.4 |
or more times followed by lastly a | 2,540.359 | 6.161 |
literal. edu so again the new syntax is | 2,543.2 | 4.6 |
quite simply there | 2,546.52 | 3.76 |
square brackets allow you to specify a | 2,547.8 | 4.16 |
set of characters that you literally | 2,550.28 | 4.44 |
type out at your keyboard a b CDE e f or | 2,551.96 | 4.96 |
the complement the opposite the carrot | 2,554.72 | 4.44 |
symbol which means not and then the one | 2,556.92 | 4.72 |
or more symbols you want to | 2,559.16 | 5.439 |
exclude questions now on this syntax | 2,561.64 | 5.84 |
here so right after add sign can we use | 2,564.599 | 5.401 |
the curly brackets M uh one so that we | 2,567.48 | 5 |
can only have one repetition of the add | 2,570 | 4.64 |
symbol absolutely so we could do this | 2,572.48 | 4.32 |
let me go ahead and pull a VSS code and | 2,574.64 | 4.24 |
let me delete the current form of a | 2,576.8 | 3.519 |
regular expression and go back to where | 2,578.88 | 5 |
we began which was justar at andar I | 2,580.319 | 5.76 |
could absolutely do something like this | 2,583.88 | 5.12 |
and require that I want at least one of | 2,586.079 | 5.361 |
any character here and then I could do | 2,589 | 4.68 |
something more to have any more as well | 2,591.44 | 4.24 |
so the curly brace syntax which we saw | 2,593.68 | 3.8 |
on the slide earlier but didn't yet use | 2,595.68 | 4 |
absolutely can be used to specify a | 2,597.48 | 4.16 |
specific number of characters but | 2,599.68 | 3.8 |
honestly this is more verbose than is | 2,601.64 | 4.4 |
necessary the best solution arguably or | 2,603.48 | 4.76 |
the simplest at least ultimately is just | 2,606.04 | 4.319 |
to say plus but there too another | 2,608.24 | 3.76 |
example of how you can solve the same | 2,610.359 | 4.2 |
problem multiple ways let me go back to | 2,612 | 4.24 |
where the regular expression just was | 2,614.559 | 4.601 |
and take other questions as well | 2,616.24 | 6.24 |
questions on these sets of characters or | 2,619.16 | 6.84 |
complimenting that's set so can you use | 2,622.48 | 5.879 |
that same syntax to say that you don't | 2,626 | 4.359 |
want a certain character throughout the | 2,628.359 | 6.081 |
whole string you could it's going to be | 2,630.359 | 5.561 |
uh you could absolutely use the same | 2,634.44 | 3.2 |
character to exclude | 2,635.92 | 4.24 |
um you could absolutely use this syntax | 2,637.64 | 4.479 |
to exclude a certain character from the | 2,640.16 | 4.159 |
entire string but it would be a little | 2,642.119 | 3.601 |
harder right now because we're still | 2,644.319 | 5.481 |
requiring doedu at the end but yes | 2,645.72 | 7.04 |
absolutely other questions what happens | 2,649.8 | 6.44 |
if the user inputs do edu in the | 2,652.76 | 6 |
beginning of the string a good question | 2,656.24 | 4.68 |
what happens if the user types in edu at | 2,658.76 | 3.48 |
the beginning of the screen well let me | 2,660.92 | 3.199 |
go back to vs code here and let's try to | 2,662.24 | 3.52 |
solve this in two different ways first | 2,664.119 | 3.401 |
let's look at the regular expression and | 2,665.76 | 4.24 |
see if we can infer if that's going to | 2,667.52 | 4.64 |
be tolerated well according to the | 2,670 | 5.28 |
current cryptic regular expression I'm | 2,672.16 | 5.36 |
saying that you can have any character | 2,675.28 | 4.44 |
except the at sign so that would work I | 2,677.52 | 4.96 |
could have the dot for the edu but then | 2,679.72 | 5.52 |
I have to have an at sign so that | 2,682.48 | 5.16 |
wouldn't really work because if I'm just | 2,685.24 | 4.76 |
typing in.edu we're not going to pass | 2,687.64 | 4.28 |
that constraint so now let me try this | 2,690 | 4.04 |
in uh by running the program let me type | 2,691.92 | 4.56 |
in just literally doedu that doesn't | 2,694.04 | 6.92 |
work but but but I could do this doedu | 2,696.48 | 8.56 |
at.edu that too is invalid but let me do | 2,700.96 | 7.32 |
this uhedu | 2,705.04 | 6.72 |
something. edu that passes so it's | 2,708.28 | 5.4 |
starting to get a little weird now maybe | 2,711.76 | 3.72 |
it's valid maybe it's not but I think | 2,713.68 | 4.52 |
we'll eventually be more precise too how | 2,715.48 | 5.2 |
about one more question on this regular | 2,718.2 | 4.6 |
expression and these complimenting of | 2,720.68 | 6.399 |
sets can we use uh another domain name | 2,722.8 | 6.16 |
as a string input can you use another | 2,727.079 | 3.841 |
domain name absolutely I'm using my own | 2,728.96 | 3.52 |
just for the sake of demonstration but | 2,730.92 | 4.04 |
you could absolutely use any domain or | 2,732.48 | 4.879 |
top level domain and I'm using edu which | 2,734.96 | 3.96 |
is very us-centric but this would | 2,737.359 | 4.48 |
absolutely work exactly the same for any | 2,738.92 | 5.48 |
top level domain all right let me go and | 2,741.839 | 4.72 |
ahead now and propose that we improve | 2,744.4 | 3.84 |
this regular expression further because | 2,746.559 | 4.401 |
if I pull it up again in V vs code here | 2,748.24 | 4.599 |
you'll see that I'm being a little too | 2,750.96 | 4.119 |
tolerant still it turns out that there | 2,752.839 | 4.561 |
are certain requirements for someone's | 2,755.079 | 4.721 |
username and domain name in an email | 2,757.4 | 4.28 |
address there is an official standard in | 2,759.8 | 3.64 |
the world for what an email address can | 2,761.68 | 4.28 |
be and what characters can be in it and | 2,763.44 | 5.52 |
this is way too accommodating of all the | 2,765.96 | 4.84 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.