Multiple choice technology programming languages

Which of the followings can be a pattern delimiter

  1. $
  2. ^

  3. "

  4. %

  5. III and IV

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

Pattern delimiters in regular expressions are non-alphanumeric characters used to bound the pattern. Both double quote (") and percent (%) are valid delimiters in several regex implementations (particularly Perl-style), as long as the delimiter doesn't appear within the pattern itself. The caret (^) and dollar sign ($) are anchors, not delimiters.