You can use `.match` there it does exactly the same.