handouts/ho04.tex
changeset 792 34132a854d03
parent 778 3e5f5d19f514
child 874 ffe02fd574a5
equal deleted inserted replaced
791:d47041b23498 792:34132a854d03
   862 quite useful. For example if we want to match the name of
   862 quite useful. For example if we want to match the name of
   863 an email we might use the regular expression
   863 an email we might use the regular expression
   864 
   864 
   865 \[
   865 \[
   866 (name: [a\mbox{-}z0\mbox{-}9\_\!\_\,.-]^+)\cdot @\cdot 
   866 (name: [a\mbox{-}z0\mbox{-}9\_\!\_\,.-]^+)\cdot @\cdot 
   867 (domain: [a\mbox{-}z0\mbox{-}9\,.-]^+)\cdot .\cdot 
   867 (domain: [a\mbox{-}z0\mbox{-}9\,-]^+)\cdot .\cdot 
   868 (top\_level: [a\mbox{-}z\,.]^{\{2,6\}})
   868 (top\_level: [a\mbox{-}z\,.]^{\{2,6\}})
   869 \]
   869 \]
   870 
   870 
   871 \noindent Then if we match the email address
   871 \noindent Then if we match the email address
   872 
   872