Multiple choice technology programming languages

Which modifier can be used when matching in Perl to match any character?

  1. S

  2. V

  3. I

  4. C

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

The /s modifier in Perl regex makes the dot (.) metacharacter match any character including newline. Without /s, dot matches any character EXCEPT newline.

AI explanation

In Perl regex, the /s modifier changes how the dot metacharacter behaves: normally . matches any character except a newline, but with /s it matches truly any character, including newline. The other letters (v, i, c) are not regex modifiers with this meaning — i for instance controls case-insensitivity, not newline matching.