I need logical AND in regex.
something like
jack AND james
agree with following strings
'hi jack here is james'
'hi james here is jack'
You can do:
\bjack\b.*\bjames\b|\bjames\b.*\bjack\b