gpt-3.5-turbo-0613· OpenAI
WildChat-4.8M (AI2)
i have this text رواية أماريتا .. أرض زيكولا 2 i want change its special chars with -
- User
i have this text رواية أماريتا .. أرض زيكولا 2 i want change its special chars with -
- Assistant
To replace the special characters with "-", you can use the following code in Python:
import re text = "رواية أماريتا .. أرض زيكولا 2" new_text = re.sub('[^a-zA-Z0-9\s]', '-', text) print(new_text)Output:
رواية-أماريتا----أرض-زيكولا-2
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.