> is there a regexp that represents AND? > > I know there's one for OR. > > I've looked at this: > http://www.greenend.org.uk/rjk/2002/06/regexp.html > and from that I can't seem to construct a magic incantation to > do what I need. Like in (<exp1>.*<exp2>|<exp2>.*<exp1>) ? Of course you didn't mention what you want to do ;)