📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!

  • google app store apple app store
  • ✖

      Question

      What does [aeiou] match in a regular expression? 

      A Any character that is NOT a vowel. Correct Answer Incorrect Answer
      B Any single vowel (a, e, i, o, u). Correct Answer Incorrect Answer
      C The exact string "aeiou". Correct Answer Incorrect Answer
      D Any character from 'a' to 'u'. Correct Answer Incorrect Answer

      Solution

      Square brackets [] define a character set, matching any single character contained within the brackets. Therefore, [aeiou] matches any single character that is 'a', 'e', 'i', 'o', or 'u'.

      Practice Next
      ask-question