// Matching a string:getByText('Hello World') // full string matchgetByText('llo Worl', {exact: false}) // substring matchgetByText('hello world', {exact: false}) // ignore case// Matching a regex:getByText(/World/) // substring matchgetByText(/world/i) // substring match, ignore casegetByText(/^hello world$/i) // full string match, ignore casegetByText(/Hello W?oRlD/i) // advanced regex// Matching with a custom function:getByText((content, element) => content.startsWith('Hello'))