*a*- matches exactly one a*^ a $*- matches a line containing only a*^*- matches a line containing one a or one b`[`

ab`]`

$*a**- matches zero or more a's*a{3,5}*- matches 3, 4 or 5 a's*(*- matches 'ac' or 'bc'`[`

ab`]`

c)*(*- matches 'ac', 'bc' or 'b'`[`

ab`]`

c)|b`[`

0-9`]`

`[`

a-z`]`

`[`

a-zA-Z`]`

*(very)? happy days*- matches 'very happy days' or 'happy days'

Always remember that, if you are in doubt of the ordering in which the regular expression is evaluated,insert brackets.

Wed Sep 25 10:45:32 BST 1996