The following are assessment questions for the concept map for regular expressions by Shyam Rallapalli
Question 1: Which of the following can regular expressions be used for? Select all that apply.
a) extracting lines of text from a data file that match a particular pattern
b) sorting lines of text in a data file
c) finding every instance of a string in a file that matches a particular pattern
d) displaying a plot of a sine wave
Question 2: Which of the following strings will be matched by the regular expression below? Select all that apply.
[0-9]{1,2}-[0-9]{1,2}-[0-9]{4}
a) 05/15/2014
b) 05-15-2014
c) May 15, 2014
d) 5-1-2014