Regex to match the locator correctly.