3 ms·
I was just trying to illustrate how the logic of AND differs from what was shown above, not give a useful example. A more practical example might be something
by chc 10y ago
I was just trying to illustrate how the logic of AND differs from what was shown above, not give a useful example.
A more practical example might be something like
/(10|22)(.*crab.*&.*apple.*)90/
in order to only match strings where the content between the numeric codes matches both "crab" and "apple" in any order.
To be clear, I don't know that it's useful enough to warrant inclusion in a regex engine. I'm just trying to provide a useful illustration.