eg-259:homework:9
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eg-259:homework:9 [2012/02/17 12:18] – [Text Processing with Regular Expressions] eechris | eg-259:homework:9 [2012/02/22 13:58] (current) – [3. Practical Exercises] eechris | ||
---|---|---|---|
Line 12: | Line 12: | ||
- //Input//: A text string, using '' | - //Input//: A text string, using '' | ||
- // | - // | ||
+ | - Use the function developed in Exercise 3 to validate a form with a text field that captures the user's name when the user presses the submit button. The form should not submit data if the name is not in the correct format. Use the example given in the session as a template. | ||
+ | - Repeat exercise 4 using the built-in HTML5 '' | ||
Line 32: | Line 34: | ||
===== 3. Practical Exercises ===== | ===== 3. Practical Exercises ===== | ||
- | * Copy and paste the following text into the //Target// window of [[/ | + | * Copy and paste the following text into the //Target// window of [[/ |
- | The quick brown fox jumped over the lazy dog. | + | |
- | + | oXoo | |
- | | + | ooXo |
- | oXoo | + | oooX |
- | ooXo | + | |
- | oooX | + | ABCDEFGHIJKLMNOPQRSTUVWXYZ |
- | + | abcdefghijklmnopqrstuvwxyz | |
- | ABCDEFGHIJKLMNOPQRSTUVWXYZ | + | 0123456789 `|\<>, |
- | abcdefghijklmnopqrstuvwxyz | + | |
- | 0123456789 `|\<>, | + | +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 | + | |
- | | + | |
- | | + | |
- | + | ||
- | 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 | + | So she was considering in her own mind (as well as she could, for the hot day made 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 | + | |
- | | + | There was nothing so very remarkable in that; nor did Alice think it so very much out of |
- | | + | |
- | | + | |
- | | + | |
- | | + | |
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | ---- | ||
+ | |||
+ | 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 // |
- the telephone number. | - the telephone number. | ||
- ''" | - ''" | ||
Line 75: | 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.1329481139.txt.gz · Last modified: 2012/02/17 12:18 by eechris