The regular expression to search for a line beginning with the word ‘last’ will be:
(a) last^
(b) $last
(c) ^last
(d) last$
Answers
Answered by
4
Answer:
c option is correct
I hope I am you
Answered by
0
Option (a) last^ is the regular expression used to search for a line beginning with the word last.
- For the searching purpose in a text the expression used is the regular expression.
- Includes a group of characters that are used to match a pattern or text.
- Certain symbols are also used in the regular expression.
- * symbol used for searching all the strings with a particular word.
- When a particular word ending line searching the "$" symbol is used.
- "^" is used for the search of a line that begins with a particular word.
Similar questions