Cyber Security

  1. Give me a reg-ex statement that will look for a certain set of characters (in this case a-z, A-Z and 0-9).
  2. Give me a reg-ex statement that matches a string that has an 'a 'followed by one or more b'
  3. Give me a reg-ex statement that matches matches a word containing 'z'.
  4. Give me a reg-ex statement that matches string that contains only upper and lowercase letters, numbers, and underscores.
  5. Give me a reg-ex statement that matches string containing these words 'fox', 'dog', 'horse'

Sample Solution