1234567891011121314151617 |
- import re
- def remove_leading_symbols(text: str) -> str:
- """
- Remove leading punctuation or symbols from the given text.
- Args:
- text (str): The input text to process.
- Returns:
- str: The text with leading punctuation or symbols removed.
- """
-
- pattern = r"^[\u2000-\u206F\u2E00-\u2E7F\u3000-\u303F!\"#$%&'()*+,\-./:;<=>?@\[\]^_`{|}~]+"
- return re.sub(pattern, "", text)
|