Answer: Regex to match string containing two names in any order
Roy
Posted on March 31, 2022
You can do checks using positive lookaheads. Here is a summary from the indispensable regular-expressions.info:
Lookahead and lookbehind, collectively called “lookaround”, are zero-length assertions...lookaround actually matches characters, but then gives up the match, returning only the result: match or no match That is why they are called “assertions”.…
💖 💪 🙅 🚩
Roy
Posted on March 31, 2022
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.