Multiple choice technology operating systems

To search a string at the end of the line use

  1. / <str>*

  2. /<str>$
  3. /<str>&

  4. None

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

In regular expressions, $ anchors a pattern to the end of a line. So /$ searches for 'str' at the end of a line. Option A uses * which means 'zero or more', option C uses & which is substitution reference, not regex.