text stringlengths 1 81 | start float64 0 10.1k | duration float64 0 24.9 |
|---|---|---|
character which is commonly known as a | 3,006.559 | 6.841 |
alpha numeric symbol or the underscore | 3,009.28 | 5.88 |
as well I'm going to do the same thing | 3,013.4 | 3.12 |
over here I'm going to highlight the | 3,015.16 | 3.639 |
entire set of square brackets delete it | 3,016.52 | 5.12 |
and replace it with a single back slw | 3,018.799 | 4.601 |
and now I feel like we're making | 3,021.64 | 2.919 |
progress because even though it's | 3,023.4 | 2.84 |
cryptic and what if it looked way | 3,024.559 | 5.161 |
cryptic a little bit ago um and even | 3,026.24 | 4.599 |
though it would have looked even more | 3,029.72 | 3.16 |
cryptic a little bit ago now it's at | 3,030.839 | 3.881 |
least starting to read a little more | 3,032.88 | 4.12 |
friendly the carrot on the left means | 3,034.72 | 3.72 |
start matching at the beginning of the | 3,037 | 5.119 |
string back slw means any word character | 3,038.44 | 6.359 |
the plus means one or more at symbol | 3,042.119 | 5 |
literally then another word character | 3,044.799 | 4.841 |
one or more then a literal dot then | 3,047.119 | 5.2 |
literally edu and then match at the very | 3,049.64 | 4.76 |
end of the string and that's it so | 3,052.319 | 3.681 |
there's more of these two and we won't | 3,054.4 | 4.56 |
use them all here but here is a partial | 3,056 | 5.599 |
list of the patterns you can use within | 3,058.96 | 5.72 |
a regular expression one you have backd | 3,061.599 | 5.081 |
for any decimal digit decimal digit | 3,064.68 | 5.2 |
meaning 0 through n commonly done here | 3,066.68 | 5.56 |
too is if you want to do the opposite of | 3,069.88 | 4.56 |
that the complement so to speak you can | 3,072.24 | 5 |
do back slash capital D which is | 3,074.44 | 5.159 |
anything that's not a decimal digit so | 3,077.24 | 5.359 |
it might be letters and punctuation and | 3,079.599 | 6.081 |
other symbols as well Meanwhile Back SLS | 3,082.599 | 5.2 |
means wh space characters like a single | 3,085.68 | 4.04 |
hit of the space or maybe hitting tab on | 3,087.799 | 4.881 |
the keyboard that's Whit space back SL | 3,089.72 | 5.28 |
capital S is the opposite or complement | 3,092.68 | 4.72 |
of that anything that's not a whit space | 3,095 | 5.119 |
character back slw we've seen a word | 3,097.4 | 5.159 |
character as well as numbers and the | 3,100.119 | 4.161 |
underscore and if you want the | 3,102.559 | 3.641 |
complement or opposite of that you can | 3,104.28 | 4.559 |
use back SL capital W to give you | 3,106.2 | 4.96 |
everything but a word character again | 3,108.839 | 4.041 |
these are just common patterns that so | 3,111.16 | 3.24 |
many people were presumably using in | 3,112.88 | 3.919 |
yester year that it's now baked into the | 3,114.4 | 4.56 |
regular expression syntax so that you | 3,116.799 | 5 |
can more succinctly express your same | 3,118.96 | 5.639 |
ideas any questions then on this | 3,121.799 | 5.8 |
approach here where we're now using | 3,124.599 | 6.52 |
backw to represent my word | 3,127.599 | 6.361 |
character uh so what I want to ask about | 3,131.119 | 4.561 |
was the actually the previous approach | 3,133.96 | 3.8 |
like the square bracket approach could | 3,135.68 | 4.72 |
we accept like uh lists in there yes | 3,137.76 | 4.68 |
we'll see this before long but suppose | 3,140.4 | 4.679 |
you wanted to tolerate not just edu but | 3,142.44 | 4.96 |
maybe edu or | 3,145.079 | 4.48 |
you could do this you could introduce | 3,147.4 | 4.679 |
parentheses and then you can or those | 3,149.559 | 6.04 |
together I could say Comm or edu I could | 3,152.079 | 6.401 |
also add in something like in the US or | 3,155.599 | 6.441 |
gov or net or anything else or org or | 3,158.48 | 5.56 |
the like and each of the vertical bars | 3,162.04 | 4.16 |
here means something special it means or | 3,164.04 | 4.039 |
and the parentheses simply group things | 3,166.2 | 4 |
together formally you have this syntax | 3,168.079 | 6.681 |
here A or B A or vertical Bar B means a | 3,170.2 | 6.52 |
has to match or B has to match where A | 3,174.76 | 4.48 |
and B can be any other patterns you want | 3,176.72 | 4.04 |
in parentheses you can group those | 3,179.24 | 3.599 |
things together so just like math you | 3,180.76 | 4.96 |
can uh combine ideas into one phrase and | 3,182.839 | 4.881 |
do this thing or the other um and | 3,185.72 | 3.399 |
there's other syntax as well that we'll | 3,187.72 | 3.48 |
soon see other questions on these | 3,189.119 | 5.48 |
regular expressions and this syntax here | 3,191.2 | 6.08 |
what if we put spaces in the expression | 3,194.599 | 5.041 |
sure so if you want spaces in there you | 3,197.28 | 5.279 |
can't use backw alone because that is | 3,199.64 | 4.52 |
only a word character which is | 3,202.559 | 4.04 |
alphabetical numerical or the under | 3,204.16 | 4.8 |
score but you could do this you could go | 3,206.599 | 4.601 |
back to this approach whereby you use uh | 3,208.96 | 3.92 |
square brackets and you could say A | 3,211.2 | 6 |
through Z or a through z or 0 through 9 | 3,212.88 | 6.199 |
or underscore or I'm going to hit the | 3,217.2 | 3.96 |
space bar a single space you can put a | 3,219.079 | 3.72 |
literal space inside of the square | 3,221.16 | 3.36 |
brackets which will allow you then to | 3,222.799 | 4.721 |
detect a space alternatively I could | 3,224.52 | 5.88 |
still use back slw but I could combine | 3,227.52 | 4.76 |
it as follows I could say give me a back | 3,230.4 | 4.919 |
slw or a back slash S because recall | 3,232.28 | 5.36 |
that back SLS is white space so it's | 3,235.319 | 3.721 |
even more than a single space it could | 3,237.64 | 3.4 |
be a tab but by putting those things in | 3,239.04 | 4.16 |
parentheses now you can match either the | 3,241.04 | 4.079 |
thing on the left or the thing on the | 3,243.2 | 4.639 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.