Human: unittest assertregex caseinsesitive. Assistant: 
Here is a Python function to unittest assertregex caseinsesitive

import re

def assertRegexCaseInsensitive(actual, expected, msg=None):
    """
    Asserts that actual matches expected, ignoring case.
    """
    if not re.search(expected, actual, re.IGNORECASE):
        if msg is None:
            msg = "Expected '%s' to match '%s', but it did not." % (
                expected, actual)
        raise AssertionError(msg)

# Enter the string
actual = "Ankit"
expected = "Ankit"

# Calling the function
print((assertRegexCaseInsensitive(actual, expected)))

#Example Output
# None

#Remember to inspect code for bugs.