Multiple choice technology programming languages

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 and command-line search tools (like vi or grep), the $ anchor represents the end of a line. Thus, /$ searches for the string at the end of a line.