Stringdagi oxirgi nuqtadan keyingi barcha belgilarni olib tashlash uchun quyidagi oddiy ifodani ishlatishingiz mumkin: `/\.[^.]*$/` Ushbu oddiy ifodani stringning oxirida nuqta (`.`) va undan keyin nuqta bo'lmagan belgilar (`[^.]*`) bilan almashtiring. Ushbu oddiy ifodani kodingizda ishlatish uchun siz stringning mos bo'lgan qismini bo'sh stringa almashtirishingiz mumkin. Python-da misol: ``` import re string = "X.Y.4" pattern = re.compile{(r".[^.]*$") new_string = re.sub(pattern, "", string) print{(new_string) # Output: XY. ``` Ushbu misolda `.re{(sub`) funksiyasi stringning mos bo'lgan qismini bo'
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence