        <p><b>Run the program</b> with a <strong class=
        "text-success">valid</strong> regular expression and a matching
        string:
        </p>
        <pre>
$ <strong>java RegexExample '[01]?\d-([0123]?\d)-\d{4}+' '01-24-2013'</strong>
Group 1: 24
</pre>

        <p><b>Run the program</b> with an <strong class=
        "text-error">invalid</strong> regular expression and any
        string:</p>
        <pre>
$ <strong>java RegexExample '[01]?[\d-[0123]?\d-\d{4}+' '01-24-2013'</strong>
Exceptio