human
Give me a Python function to get all text inside xml.
assistant
Here is a Python function to get all text inside xml

import re

def get_all_text_in_xml(xml_string):
  """Gets all text inside an xml string."""
  return re.findall('<.*?>', xml_string)

# Enter the string
xml_string = "<root><child>lilly</child><child>cat</child><child>bicycle</child></root>"

# Calling the function
print((get_all_text_in_xml(xml_string)))

#Example Output
# ['<root>', '<child>', '</child>', '<child>', '</child>', '<child>', '</child>', '</root>']

#Remember to inspect code for bugs.