how to get next string at the end of the line when string matched
<p>I am reading PDF file. in one page of PDF file i want to get the date from this string line "Illustration as of : December 9, 2016". i am able to search the "Illustration as of :" using regex. but how i cant get the date. i need to return the in regex result. i don't need to return the same string that i am search.</p>

<pre><code>i tried this but it only return me Illustration as of :

const regex = /Illustration as of:/g;
const str = `Illustration as of: December 9, 2016`;
let m;

while ((m = regex.exec(str)) !== null) {
    // This is necessary to avoid infinite loops with zero-width matches
    if (m.index === regex.lastIndex) {
        regex.lastIndex++;
    }
    // The result can be accessed through the `m`-variable.
    m.forEach((match, groupIndex) =&gt; {
        console.log(`Found match, group ${groupIndex}: ${match}`);
    });
}
</code></pre>

<p>i just need to return this result December 9, 2016</p>