CS280 Exam1 Practice Problems Solutions Spring2014

Indicate if the regular expression matches the string

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: case vowels (a,e,I,o, or u) somewhere in the word CS280 RE Exercises 1 The table below gives pairs of regular expressions and strings. Indicate if the regular expression matches the string or not. RE String 1 (ab)?(ac)+ab* abacab YES NO 2 ([A- Z][a- z])* MoNsTeRoUs YES NO 3 (cla(s|ss)(y|ic)? )? classic clay YES NO 4 ((a|hu)n)?gry hugry YES NO 5 [^aeiou]*[aeiou]+[^aeiou]* great YES NO CS280 R...
View Full Document

This document was uploaded on 04/03/2014.

Ask a homework question - tutors are online