Answer: Regex to match string containing two names in any order

icy1900

Roy

Posted on March 31, 2022

Answer: Regex to match string containing two names in any order

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”.…

💖 💪 🙅 🚩
icy1900
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.

Related