Reply To: How to exclude certain domains

Splash Forums Rewrite Users How to exclude certain domains Reply To: How to exclude certain domains

#25399

Oh whoops πŸ™‚

.when(
   Not.any(Domain.matches("domain1")
      .or(Domain.matches("domain2"))
   )
)

There you go!

Keep in mind, you can also parameterize the domains:

.when(
   Not.any(Domain.matches("{domain}"))
)
.where("domain").matches("domain(1|2).*")

This allows you to use regular expressions πŸ™‚