human
How to match beginning of string or character in Python
assistant
Here is some code to get all the matches from a string `abcd` if it begins with a character `a`

re.findall('[^a]', 'abcd')

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.