1.

What is the significance of (dollarSign) used in regular expression in UNIX?(a) Matches the beginning of the line(b) Matches the end of lines(c) Matches any single character(d) None of the mentionedI got this question during an internship interview.My doubt is from Regular Expression in UNIX in portion Regular Expressions and Languages of Automata Theory

Answer»

Correct OPTION is (b) Matches the end of lines

For explanation: Regular expression provides more flexibility while MATCHING string patterns. SPECIAL characters LIKE ^, $, *, . are very useful.



Discussion

No Comment Found

Related InterviewSolutions