I need logical AND in regex.
something like
jack AND james
agree with following strings
\'hi jack here is
Explanation of command that i am going to write:-
. means any character, digit can come in place of .
* means zero or more occurrences of thing written just previous to it.
| means 'or'.
So,
james.*jack
would search james , then any number of character until jack comes.
Since you want either jack.*james or james.*jack
Hence Command:
jack.*james|james.*jack