There's no reason to use '.*?' instead of '.*' in your examplesl.
It matters if the pattern contain captures.
I must admit I approached my post backwards. I started with /pat1/ && /pat2/ and gave the functionally equivalent pattern. (Well, /.*?/ should actually be /(?s:.)*?/)
In reply to Re^3: AND and OR on Regular Expressions
by ikegami
in thread AND and OR on Regular Expressions
by vitoco
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |