text stringlengths 1 81 | start float64 0 10.1k | duration float64 0 24.9 |
|---|---|---|
mean in single asterisk zero or more | 915.16 | 5.599 |
repetitions so if I say something star | 917.839 | 4.68 |
that means that I'm willing to accept | 920.759 | 4.08 |
either zero repetitions that is nothing | 922.519 | 5.76 |
at all or more repetitions one or two or | 924.839 | 4.881 |
three or 300 | 928.279 | 3.56 |
if you see a plus in my patterns that's | 929.72 | 4.4 |
going to mean one or more repetitions | 931.839 | 3.24 |
that is to say there's got to be at | 934.12 | 3.279 |
least one character there one symbol and | 935.079 | 5.161 |
then there's optionally more after that | 937.399 | 4.92 |
and then you can say zero or one | 940.24 | 4.039 |
repetition you can use a single question | 942.319 | 4.361 |
mark after a symbol and that will say I | 944.279 | 5.441 |
want zero of this character or one but | 946.68 | 5.56 |
that's all I'll expect and then lastly | 949.72 | 3.919 |
there's going to be a way to specify a | 952.24 | 3.24 |
specific number of symbols if you use | 953.639 | 3.68 |
these curly braces and a number | 955.48 | 3.88 |
represented here symbolically as m you | 957.319 | 4.161 |
can specify that you want M repetitions | 959.36 | 4.56 |
be it one or two or three or 300 you can | 961.48 | 4 |
specify the number of repetitions | 963.92 | 3.32 |
yourself and if you want a range of | 965.48 | 3.68 |
repetitions like you want this few | 967.24 | 4 |
characters or this many characters you | 969.16 | 4.039 |
can use curly braces and two numbers | 971.24 | 4.44 |
inside called here M and N which would | 973.199 | 5.481 |
be a range of M through n repetitions | 975.68 | 4.519 |
now what does all of this mean well let | 978.68 | 3.76 |
me go back to vs code here and let me | 980.199 | 4.76 |
propose that we iterate on this solution | 982.44 | 4.519 |
further it's not sufficient to just | 984.959 | 3.44 |
check for the at sign we know that | 986.959 | 3.081 |
already we minimally want something to | 988.399 | 3.92 |
the left and to the right so how can I | 990.04 | 4.32 |
represent that I don't really care what | 992.319 | 4.32 |
the user's username is or what letters | 994.36 | 4.56 |
of the alphabet are in it be it men or | 996.639 | 4.361 |
anyone else's so what I'm going to do to | 998.92 | 3.919 |
the left of this equal sign is I'm going | 1,001 | 4.72 |
to use a single period the dot that | 1,002.839 | 5.68 |
again indicates any character except for | 1,005.72 | 4.88 |
a new line but I don't just want a | 1,008.519 | 4 |
single character otherwise the P | 1,010.6 | 4.44 |
person's username could only be a at | 1,012.519 | 5.12 |
such and such or B at such and such I | 1,015.04 | 4.919 |
want it to be multiple such characters | 1,017.639 | 4.68 |
so I'm going to initially use a star so | 1,019.959 | 4.201 |
star means give me something to the left | 1,022.319 | 4 |
and I'm going to do another one star | 1,024.16 | 4.48 |
something to the right now this isn't | 1,026.319 | 4.281 |
perfect but it's at least a step forward | 1,028.64 | 3.159 |
because now what I'm going to go ahead | 1,030.6 | 3.199 |
and do is this I'm going to rerun python | 1,031.799 | 3.961 |
to validate I'm going to keep testing my | 1,033.799 | 3.361 |
own email address just to make sure I | 1,035.76 | 3.4 |
haven't made things worse and that's now | 1,037.16 | 4 |
okay I'm now going to go ahead and type | 1,039.16 | 5.48 |
in some other input like how about just | 1,041.16 | 6.44 |
uh mailin at with no domain name | 1,044.64 | 4.56 |
whatsoever and you would think this is | 1,047.6 | 5.16 |
going to be invalid but but but it's | 1,049.2 | 6.599 |
still considered valid but why is that | 1,052.76 | 6 |
if I go back to this chart why is maen | 1,055.799 | 7.601 |
at with no domain now considered valid | 1,058.76 | 8.12 |
what's my mistake here by having used | 1,063.4 | 6.48 |
star at. star as my regular expression | 1,066.88 | 5.56 |
or Rex because you're using the star | 1,069.88 | 5.44 |
instead of the plus sign exactly the | 1,072.44 | 4.84 |
star again means zero or more | 1,075.32 | 4.8 |
repetitions so re e. search is perfectly | 1,077.28 | 4.92 |
happy to accept nothing after the equ | 1,080.12 | 3.84 |
after the at sign because that would be | 1,082.2 | 4.04 |
zero repetitions so I think I minimally | 1,083.96 | 4.24 |
need to evolve this and go back to my | 1,086.24 | 3.88 |
code here and let me go ahead and change | 1,088.2 | 5.64 |
this from Star to plus and let me change | 1,090.12 | 7.16 |
the ending from Star to plus so that now | 1,093.84 | 5.64 |
when I run my code here let me go ahead | 1,097.28 | 4.279 |
and run python of validate dopy I'm | 1,099.48 | 4.16 |
going to test my email addresses always | 1,101.559 | 4.24 |
still working now let me go ahead and | 1,103.64 | 4 |
type in that same thing from before that | 1,105.799 | 4.481 |
was accidentally considered valid now I | 1,107.64 | 5.24 |
hit enter finally it's invalid so now | 1,110.28 | 4.639 |
we're making some progress on being a | 1,112.88 | 3.88 |
little more precise as to what it is | 1,114.919 | 4.081 |
we're doing now I'll note here like with | 1,116.76 | 4.56 |
almost everything in programming python | 1,119 | 4.44 |
included there's often multiple ways to | 1,121.32 | 4.88 |
solve the same problem and does anyone | 1,123.44 | 6.359 |
see a way in my code here that I could | 1,126.2 | 6.56 |
make a slight tweak if I forgot that the | 1,129.799 | 5.521 |
plus operator exists and go back to | 1,132.76 | 5.48 |
using a star if I allowed you only to | 1,135.32 | 5.8 |
use Dot and only Stars could you | 1,138.24 | 6.76 |
recreate the notion of plus yes um use | 1,141.12 | 6.76 |
another dot dot dot star yeah because if | 1,145 | 4.64 |
a DOT means any character we'll just use | 1,147.88 | 3.679 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.