Blob


1 Extra credit exercise: modify the program from the previous exercise so
2 that immediately following the word ending in 'a' it will also capture
3 up-to-five characters (if there are that many characters, of course) in a
4 separate capture variable. Update the code to display both capture
5 variables. For example, if the input string says 'I saw Wilma yesterday',
6 the up-to-five characters are " yest" (with the leading space). If the
7 input is "I, Wilma!", the extra capture should have just one character.
8 Does your pattern still match just plain 'wilma'?