Answer the question
In order to leave comments, you need to log in
How to turn regexp into 1 line?
I have a string:
КАТЕГОРИЯ: ТекстИСТЕЦ: Текст.ОТВЕТЧИК: Текст
I extract "Text" from it:
re := regexp.MustCompile(`(КАТЕГОРИЯ:\s+)(.*)(ИСТЕЦ)`)
re := regexp.MustCompile(`(ИСТЕЦ:\s+)(.*)(ОТВЕТЧИК)`)
re := regexp.MustCompile(`(ОТВЕТЧИК:\s+)(.*)`)
re := regexp.MustCompile(`(?P<Year>\d{4})-(?P<Month>\d{2})-(?P<Day>\d{2})`)
re := r.FindStringSubmatch(`2015-05-27`)
re := regexp.MustCompile(``)
Answer the question
In order to leave comments, you need to log in
КАТЕГОРИЯ:\s+(?P<Category>.*)ИСТЕЦ:\s+(?P<Plaintiff>.*)ОТВЕТЧИК:\s+(?P<Defendant>.*)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question