Case based critical thinking
?
Case 13-5
?
William is exploring the syntax of regular expressions. He learns that in the regular expression language, a word refers to any string of symbols consisting solely of word characters. He also learns that word boundaries are indicated by the\bsymbol. He wants to use a pattern that matches any word that starts with the characters "great" such as "greater", "greatness", or "greatest"
Which of the following patterns should William use to match any word that ends with "ust" such as "dust", "trust", or "must"?

A. /ust\b/
B. /\bust/
C. \bust/
D. /b\ust/

Answer: A

Computer Science & Information Technology

You might also like to view...

A(n) ________ is a self-contained program usually designed for a single purpose

Fill in the blank(s) with correct word

Computer Science & Information Technology

Case-based Critical Thinking Questions Case 3-1 Judy wants to be able to validate the XML documents that she uses for recipes. These documents include numeric elements that specify ingredient amounts and cooking times, so you recommend that she use a schema instead of a DTD, and you teach her some of the key facts about schemas. You tell Judy that there are multiple vocabularies available for schema. Which of them is the most widely adopted?

A. XML Data B. XML Schema C. Regular Language for XML D. Schematron

Computer Science & Information Technology