The Regex Coach - Tutorial step 17

Switch back to the "Control" tab, type the regular expression a.*?$ into the regex pane, and type the sentence "A man's gotta do what a man's gotta do." into the target pane. Make sure you hit the RETURN key before what so that the panes look like in the screen shot below.

Screen Shot

Now try all eight different combinations of the "i", "m", and "s" modifier checkboxes and see how the match changes accordingly. Make sure you understand what happens and why... :)