regex - Regular Expressions: Is there an AND operator? -
obviously, can use |
(pipe?) represent or
, there way represent and
well?
specifically, i'd match paragraphs of text contain of phrase, in no particular order.
use non-consuming regular expression.
the typical (i.e. perl/java) notation is:
(?=
expr)
this means "match expr after continue matching @ original match-point."
you can many of these want, , "and." example:
(?=match expression)(?=match too)(?=oh, , this)
you can add capture groups inside non-consuming expressions if need save of data therein.
Comments
Post a Comment