Answer the question
In order to leave comments, you need to log in
Is it possible to make 2 conditions in a pattern?
Is it possible to make the pattern satisfy two conditions at once in one regex pattern?
For example, if there is a line 'aaacd aaa bbbcd cccdd', is it possible to break this line there so that it cuts off the endings of words that end in 'cd|dd' for example, and at the same time break the same line on spaces? Or do you need to first write a regular expression that breaks the endings, and then feed it into another regular expression that will break it by spaces?
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