0 out of 464 challenges solved

Check String Starts with Vowel

Write a Python function `check_str` that determines whether a given string starts with a vowel (a, e, i, o, u) using regular expressions. The function should return `True` if the string starts with a vowel (case-insensitive) and `False` otherwise.

#### Example Usage
```python [main.nopy]
print(check_str("annie"))  # Output: True
print(check_str("dawood")) # Output: False
print(check_str("Else"))   # Output: True
```

#### Requirements
- Use regular expressions to solve the problem.
- The function should handle both uppercase and lowercase vowels.
- The function should return a boolean value.
import re

def check_str(string):
    """
    Check if the given string starts with a vowel using regex.

    Args:
        string (str): The input string to check.

    Returns:
        bool: True if the string starts with a vowel, False otherwise.
    """
    # Define the regex pattern for a string starting with a vowel
    pattern = ''  # TODO: Complete the regex pattern
    # Use re.match to check the pattern
    return bool(re.match(pattern, string))