text
stringlengths
1
81
start
float64
0
10.1k
duration
float64
0
24.9
you may not have ever noticed and indeed
1,833.6
3.64
if you'd like to open up Google forms
1,835.399
3.961
create a new form temporarily and poke
1,837.24
4.319
around you will actually see in English
1,839.36
4.199
at least quote unquote regular
1,841.559
3.681
expression mentioned as one of the
1,843.559
3.641
mechanisms you can use to validate your
1,845.24
4.36
users's input into your Google form so
1,847.2
4.52
in fact after today you can start
1,849.6
4.079
avoiding these specific dropdowns of
1,851.72
3.76
like email address or URL or the like
1,853.679
4.36
and you can express your own patterns
1,855.48
4.919
precisely as well regular Expressions
1,858.039
4.961
can even be used in VSS code itself if
1,860.399
5.041
you go and find or do a find and replace
1,863
4.48
in vs code you can of course just type
1,865.44
4.199
in words like you could into Microsoft
1,867.48
4.84
Word or Google Docs you can also type if
1,869.639
4.561
you check the right box regular
1,872.32
3.92
expressions and start searching for
1,874.2
5.479
patterns not literally specific values
1,876.24
6.039
well let me propose that we now enhance
1,879.679
4.681
this implementation further by
1,882.279
4.081
introducing a few other symbols because
1,884.36
4.52
right now with my code I keep saying
1,886.36
4.439
that I want my email address to end with
1,888.88
5.24
doedu and start with a username but I'm
1,890.799
5.561
being a little too generous this does in
1,894.12
4.12
fact work as expected for my own email
1,896.36
5.48
address maen harvard.edu but what if I
1,898.24
7.2
type in a sentence like my email address
1,901.84
6.679
is maen harvard.edu and suppose I've
1,905.44
4.92
typed that into the program or I've
1,908.519
4.28
typed that into a Google form is this
1,910.36
7.6
going to be considered valid or invalid
1,912.799
7.921
well let's consider it's got the at sign
1,917.96
5.28
so we're good there it's got one or more
1,920.72
4.919
characters to the left of the at sign
1,923.24
4.48
it's got one or more characters to the
1,925.639
5.081
right of the at sign it's got a literal
1,927.72
5.839
doedu somewhere in there to the right of
1,930.72
4.679
the at sign and granted there's more
1,933.559
3.641
stuff to the right there's literally
1,935.399
3.561
this period at the end of my English
1,937.2
4
sentence but that's okay because at the
1,938.96
4.16
moment my regular expression is not so
1,941.2
4.68
precise as to say the pattern must start
1,943.12
6.2
with the username and end with the edu
1,945.88
5.759
technically it's left unsaid what more
1,949.32
4
can be to the left and what more can be
1,951.639
4.241
to the right so when I hit enter now
1,953.32
4.199
you'll see that that whole sentence in
1,955.88
3.72
English is valid and that's obviously
1,957.519
3.721
not what you want in fact consider the
1,959.6
4.439
case of using Google forms or Office 365
1,961.24
5.12
to collect data from users if you don't
1,964.039
4.52
validate your input your users might
1,966.36
4
very well type in a full sentence or
1,968.559
3.84
some else with a typographical error not
1,970.36
3.88
an actual email so if you're just trying
1,972.399
3.921
to copy all of the results that have
1,974.24
3.36
been typed into your form so you can
1,976.32
3.28
paste them into Gmail or some email
1,977.6
3.64
program it's going to break because
1,979.6
2.84
you're going to accidentally paste
1,981.24
2.799
something like a whole English sentence
1,982.44
3.599
into the program instead of just an
1,984.039
4.041
email address which is what your mailer
1,986.039
4.201
expects so how can I be more precise
1,988.08
3.719
well let me propose we introduce a few
1,990.24
4.319
more symbols as well it turns out in the
1,991.799
4.88
context of a regular expression one of
1,994.559
4.321
these patterns you can use the carrot
1,996.679
4.72
symbol the little triangular Mark to
1,998.88
4.72
represent that you want this pattern to
2,001.399
4.361
match the start of the string
2,003.6
4.36
specifically not anywhere but the start
2,005.76
4.759
of the user string by contrast you can
2,007.96
4.599
use a dollar sign in your regular
2,010.519
4.081
expression to say that you want to match
2,012.559
3.96
the end of the string or technically
2,014.6
3.559
just before the new line at the end of
2,016.519
3.081
the string but for all intents and
2,018.159
3.201
purposes think of carrot as meaning
2,019.6
3.88
start of the string and dollar sign as
2,021.36
5.159
meaning end of the string it is a weird
2,023.48
5.199
thing that one is a carrot and one is a
2,026.519
3.721
dollar sign these are not really things
2,028.679
3.281
that I think of as opposites like a
2,030.24
3.52
parenthesis or something like that but
2,031.96
3.28
those are the symbols the world chose
2,033.76
4.279
many years ago so let me go back to vs C
2,035.24
5.24
now and let me add this feature to my
2,038.039
5.201
code here let me specify that yes I do
2,040.48
4.679
want to search for this pattern but I
2,043.24
4.559
want the users's input to start with
2,045.159
4.641
this pattern and end with this pattern
2,047.799
3.08
so even though it's going to start
2,049.8
3.48
looking even more cryptic I put a carrot
2,050.879
4.561
symbol here at the beginning and I put a
2,053.28
4.399