a)

'; echo '

^ Indicates the beginning of the string

'; echo '

{3, 16} Indicates that the subpattern must repeat from 3 to 16 times

'; echo '

[a-z0-9_-] Indicates that string can only contain "a - z", "0 - 9" and underscore "_" and a hyphen "-"

'; echo '

$ Indicates the end of the string

'; //////////////////////// Task 10 (b) //////////////////////////////////////////////////////////////////////////////////////// echo '

b)

'; echo '^[\w-\.]+@([\w-]+\.)+\.co\.za$' ?>