Given Segment Of Codep Pre Langc Cssfilehk1style String1 #277
Given segment of code: <pre><code class="language-c"> $string1 = "Hello\nWorld\n"; if ($string1 =~ m/d\n\z/) { print "$string1 is a string "; print "that ends with 'd\\n'.\n"; }</code></pre> What does the symbol /z does?
This multiple choice question (MCQ) is related to the book/course gs gs101 Automata Theory. It can also be found in gs gs101 Regular Expressions and Languages - Converting Regular Expressions to Automata - Quiz No.1.
Given segment of code:
$string1 = "Hello\nWorld\n"; if ($string1 =~ m/d\n\z/) { print "$string1 is a string "; print "that ends with 'd\\n'.\n"; }
What does the symbol /z does?
changes line
matches the beginning of a string
matches the end of a string
none of the mentioned
Similar question(s) are as followings:
Online Quizzes of gs101 Automata Theory
Other Classes Of Problems - Randomized Algorithm - Quiz No.1
gs gs101 Automata Theory
Online Quizzes
Push Down Automata - DPDA and Ambiguous Grammars - Quiz No.1
gs gs101 Automata Theory
Online Quizzes