Human: can you split in based on specific characters. Assistant: 
Here is a Python function to split in based on specific characters

import re

def split(s, delimiter):
    """Split a string on the given delimiter."""
    return s.split(delimiter)

# Enter the string
s = "This is a test"

# Calling the function
print((split(s, " ")))

#Example Output
# ['This', 'is', 'a', 'test']

#Remember to inspect code for bugs.