User Tools

Site Tools


eg-259:homework:9

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
eg-259:homework:9 [2012/02/22 13:46] – [3. Practical Exercises] eechriseg-259:homework:9 [2012/02/22 13:58] (current) – [3. Practical Exercises] eechris
Line 36: Line 36:
   * Copy and paste the following text into the //Target// window of [[/eg-259/examples/lecture7/regexpal/index.html|RegexPal]] or [[/eg-259/examples/lecture7/JRX.html|JRX]]   * Copy and paste the following text into the //Target// window of [[/eg-259/examples/lecture7/regexpal/index.html|RegexPal]] or [[/eg-259/examples/lecture7/JRX.html|JRX]]
  
-    Xooo +  Xooo 
-    oXoo +  oXoo 
-    ooXo +  ooXo 
-    oooX +  oooX 
-     +   
-    ABCDEFGHIJKLMNOPQRSTUVWXYZ +  ABCDEFGHIJKLMNOPQRSTUVWXYZ 
-    abcdefghijklmnopqrstuvwxyz +  abcdefghijklmnopqrstuvwxyz 
-    0123456789 `|\<>,./?#~'@;:[]{}=+-_)(*&^%$£"+  0123456789 `|\<>,./?#~'@;:[]{}=+-_)(*&^%$£"
-     +   
-    +44 (1792) 295580 +  +44 (1792) 295580 
-     +   
-    some.one@swan.ac.uk +  some.one@swan.ac.uk 
-     +   
-    Some wiki text with words in //italic// and **bold**. Like //this// or **that**. +  Some wiki text with words in //italic// and **bold**. Like //this// or **that**. 
-     +   
-    Alice was beginning to get very tired of sitting by her sister on the bank, and of having +  ---- 
-    nothing to do: once or twice she had peeped into the book her sister was reading, but it +  Alice was beginning to get very tired of sitting by her sister on the bank, and of having 
-    had no pictures or conversations in it, `and what is the use of a book,' thought Alice +  nothing to do: once or twice she had peeped into the book her sister was reading, but it 
-    `without pictures or conversation?' +  had no pictures or conversations in it, `and what is the use of a book,' thought Alice 
-     +  `without pictures or conversation?' 
-    So she was considering in her own mind (as well as she could, for the hot day made her +   
-    feel very sleepy and stupid), whether the pleasure of making a daisy-chain would be worth +  So she was considering in her own mind (as well as she could, for the hot day made her 
-    the trouble of getting up and picking the daisies, when suddenly a White Rabbit with pink +  feel very sleepy and stupid), whether the pleasure of making a daisy-chain would be worth 
-    eyes ran close by her. +  the trouble of getting up and picking the daisies, when suddenly a White Rabbit with pink 
-     +  eyes ran close by her. 
-    There was nothing so very remarkable in that; nor did Alice think it so very much out of +   
-    the way to hear the Rabbit say to itself, `Oh dear! Oh dear! I shall be late!' (when she +  There was nothing so very remarkable in that; nor did Alice think it so very much out of 
-    thought it over afterwards, it occurred to her that she ought to have wondered at this, +  the way to hear the Rabbit say to itself, `Oh dear! Oh dear! I shall be late!' (when she 
-    but at the time it all seemed quite natural); but when the Rabbit actually took a watch +  thought it over afterwards, it occurred to her that she ought to have wondered at this, 
-    out of its waistcoat-pocket, and looked at it, and then hurried on, Alice started to her +  but at the time it all seemed quite natural); but when the Rabbit actually took a watch 
-    feet, for it flashed across her mind that she had never before seen a rabbit with either a +  out of its waistcoat-pocket, and looked at it, and then hurried on, Alice started to her 
-    waistcoat- pocket, or a watch to take out of it, and burning with curiosity, she ran +  feet, for it flashed across her mind that she had never before seen a rabbit with either a 
-    across the field after it, and fortunately was just in time to see it pop down a large +  waistcoat- pocket, or a watch to take out of it, and burning with curiosity, she ran 
-    rabbit-hole under the hedge.+  across the field after it, and fortunately was just in time to see it pop down a large 
 +  rabbit-hole under the hedge. 
 +  ---- 
 +   
 +  End of File
  
   * Write regular expressions to match:   * Write regular expressions to match:
     - any non-blank line of text.     - any non-blank line of text.
-    - any word.+    - any //proper// word((That is as we normally understand the term ... not the ''\w'' definition)).
     - the telephone number.     - the telephone number.
     - ''"X"'' followed by up to two ''"o"'' characters     - ''"X"'' followed by up to two ''"o"'' characters
Line 80: Line 84:
     - any lowercase consonant     - any lowercase consonant
     - any punctuation character     - any punctuation character
-    - The domain name of the email address. +    - the email address 
-    - The user name of the email address. +    - the domain name of the email address. 
-    - The words in italics in the wiki text. +    - the user name part of the email address. 
-    - The start of each sentence in the quotation from Alice in Wonderland.+    - the words in italics in the wiki text. 
 +    - the start of each sentence in the quotation from Alice in Wonderland.
  
   * Take any (or all) of the example JavaScript programs from the last three lectures and explore them in //Firebug// using the console, console logger and debugger.   * Take any (or all) of the example JavaScript programs from the last three lectures and explore them in //Firebug// using the console, console logger and debugger.
eg-259/homework/9.1329918400.txt.gz · Last modified: 2012/02/22 13:46 by eechris