Answer the question
In order to leave comments, you need to log in
Regular searches only the beginning of the sentence, what is the reason?
tell me, I made a regular expression, for example "president[a-z]{0,} Georgia[a-z]{0,} '", I search in sentences using the match call,
result=re.match(regular,string, re.I)
but it searches only at the beginning of the line, i.e. displays only sentences starting with this regular expression, but inside the sentence it does not search and does not display, what could be the reason?
output like this
re.Match object; span=(0, 17), match='Президент Грузии '>
result = re.match(regular, dirt_sentence_block_news_list[dirt_single_sentence], re.I)
if result!=None:
bufer_news.append(result)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question