I\'m trying to find all pages which contain words \"text1\" and \"text2\". My regex:
text1(.|\\n)*text2
it doesn\'t work..
text0[\s\S]*text1
Try this.This should do it for you.
What this does is match all including multiline .similar to having .*? with s flag.
.*?
s
\s takes care of spaces,newlines,tabs \S takes care any non space character.
\s
spaces,newlines,tabs
\S