Метод строки isidentifier() поможет узнать, подходит ли данная строка в качестве имени объекта.
Вполне может заменить самостоятельно придуманную регулярку.
>>> 'some_name'.isidentifier()
True
Обычное имя переменной
>>> '私は手紙です'.isidentifier()
True
Юникод в качестве имени тоже доступен
>>> '1_name'.isidentifier()
False
Имя не может начинаться с цифры
>>> '੬_name'.isidentifier()
False
Включая все цифры юникода
>>> 'some name'.isidentifier()
False
Пробелы недопустимы
#basic
🚀 Huge profits are made in the Premium Group
🎯🎯#ONT/USDT has covered all the target to give a Profit of 220% to all Premium Members
👁🗨Contact @futurechief to enter the Premium Futures & SPOT Group for daily gain
#ONT/USDT analysis :
#ONT has successfully broken out and is currently testing a previously respected resistance zone. The price has rebounded from this zone, and it is expected to resume its upward momentum, aiming to test previous highs.
TF : 1D
Entry : $0.2595
Target : $0.3900
SL : $0.2050
#ONT/USDT analysis -
#ONT be in downtrend trading below 200ema. After a corrective pullback, price retraced to 200ema and getting rejected. It is expected to drop from current level and test previous lows.
TF : 4H
Entry : $0.2013
Target : $0.1597
SL : $0.2125