The function would be:
def split_string(string, removal)
For example, if I have the string ABCDEFGHIJK and removal string DEF, the program would remove DEF from the string and return the LEFT and RIGHT resulting strings. In this case, it would be ABC and GHIJK.
How would I go about doing this using Regex? One idea I had was to find the target "removal" string in the original string and replace it with a space, then parse that string and return the two strings.