Courses‎ > ‎Computer Graphics‎ > ‎Konstantinovich‎ > ‎

2019-05-07

posted May 7, 2019, 10:17 AM by Konstantinovich Samuel   [ updated May 7, 2019, 10:37 AM ]
Goal: Regular Expressions.

[ ]   -  e.g.  [a]  [ab] [acf]
a-z  - e.g. [a-z] [a-zA-Z]
+  
*
?



1. Any of these words:
The quick brown fox jumps over the lazy dog.
Sally saw Sam with binoculars.
Fair  is unfair to sheep.
BUT NOT THESE:
FFool F1sh s_oop sh00p "Fleece"
D4R3 T0 83 5700P1D

2. Any of these numbers:
1        -3
185        -270
9124    -294291

3. Any of these numbers:
-0.3        2.5
-3.89        2891.2
18.            1028000.02820

Any of these identifiers
x                xy3a
x2                x2y2
win4life        the_best
hot_fuzz        D_A_N_G_E_R_1_0_0

Fun with regex:
Comments