Adding docs that this returns null if there's no match. This is to be similar to Pattern's behavior.