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
Next revisionBoth sides next revision
eg-259:homework:9 [2012/02/22 13:40] – [3. Practical Exercises] eechriseg-259:homework:9 [2012/02/22 13:55] – [3. Practical Exercises] eechris
Line 34: Line 34:
 ===== 3. Practical Exercises ===== ===== 3. Practical Exercises =====
  
-  * Copy and paste the following text into the //Target// window of [[/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
Line 40: Line 40:
     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     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     nothing to do: once or twice she had peeped into the book her sister was reading, but it
     had no pictures or conversations in it, `and what is the use of a book,' thought Alice     had no pictures or conversations in it, `and what is the use of a book,' thought Alice
     `without pictures or conversation?'     `without pictures or conversation?'
 +    
     So she was considering in her own mind (as well as she could, for the hot day made her     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     feel very sleepy and stupid), whether the pleasure of making a daisy-chain would be worth
     the trouble of getting up and picking the daisies, when suddenly a White Rabbit with pink     the trouble of getting up and picking the daisies, when suddenly a White Rabbit with pink
     eyes ran close by her.     eyes ran close by her.
 +    
     There was nothing so very remarkable in that; nor did Alice think it so very much out of     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     the way to hear the Rabbit say to itself, `Oh dear! Oh dear! I shall be late!' (when she
Line 70: Line 71:
     across the field after it, and fortunately was just in time to see it pop down a large     across the field after it, and fortunately was just in time to see it pop down a large
     rabbit-hole under the hedge.     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
eg-259/homework/9.txt · Last modified: 2012/02/22 13:58 by eechris