Returns all the text in source that follows match. If not found, source is returned.
source
match
See also: beforeMatch, beforeAfterMatch.
afterMatch(`Hello. There`, `.`); // ' There'afterMatch(`Hello, there', `,`); // 'Hello, there' Copy
afterMatch(`Hello. There`, `.`); // ' There'afterMatch(`Hello, there', `,`); // 'Hello, there'
If source is undefined, an error is thrown.
Returns all the text in
source
that followsmatch
. If not found,source
is returned.See also: beforeMatch, beforeAfterMatch.
If
source
is undefined, an error is thrown.