Ritvik19's picture
Add all files and directories
c8a32e7
raw
history blame contribute delete
231 Bytes
import re
def replace_bullets(text):
# Replace bullet characters with a -
bullet_pattern = r"(^|[\n ])[‒●○■β–ͺ▫–—]( )"
replaced_string = re.sub(bullet_pattern, r"\1-\2", text)
return replaced_string