Blame


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