Popular in Course
Popular in ComputerScienence
This 2 page Class Notes was uploaded by Geraldine McLaughlin on Thursday October 29, 2015. The Class Notes belongs to CS271 at Wright State University taught by Staff in Fall. Since its upload, it has received 11 views. For similar materials see /class/231106/cs271-wright-state-university in ComputerScienence at Wright State University.
Reviews for IntrotoBioinformatics
Report this Material
What is Karma?
Karma is the currency of StudySoup.
You can buy or earn more Karma at anytime and redeem it for class notes, study guides, flashcards, and more!
Date Created: 10/29/15
CEG333 Introduction to UNIX Practice Problems Regular expressions 1 Write a regular expression that would match the strings cat at and t 2 Write a regular expression to recognize any string that contains the substring bob 3 Write a regular expression that would match the strings cat caat caaat caa aat etc strings that start with c followed by one or more a s ending with a t 4 Write a regular expression that matches the strings dog Dog dOg DOG dOG etc That is dog written in any combination of uppercase or lowercase letters 5 Write a regular expression that matches any positive number with or without a decimal point Hint if there is a decimal point there must be at least one digit following the decimal point Hint 2 Since the dot Matches any character you must use to match a decimal point 6 Write a regular expression to match any natural number that doesn t end in 9 7 Write a regular expression to match any line with exactly one word White space any number of spaces is allowed before or after the word 8 Given the regular expression cggd and the string c my dog run gg234and me What will be the value of 1 What will be the value of 2 9 List ve strings that would match the regular expression cabc kaeiou List two strings that would not match this regular expression Solutions 1 Acat EX egrep Acat words 2 bob EX egrep bob words 3 Acat 4 dD oOGg 5 A012345678901234567890 6 0123456789 012345678 7 1azAz 8 1 my dog run 2 234 9 Example Matching strings cbba keai cbc kiu cc k Example of strings that do not match bob ted
Are you sure you want to buy this material for
You're already Subscribed!
Looks like you've already subscribed to StudySoup, you won't need to purchase another subscription to get this material. To access this material simply click 'View Full Document'