Jump to content

Recommended Posts

Posted

Could anyone be kind enough to create a regex for me that looks at specific subdomains of our MAT?

 

We are wanting to prevent students from sending to our primaries which each are a subdomain of the MAT domain.

 

There are currently 9 primaries so i was hoping it would be something like ^(?i)sch1.mat.uk|sch2.mat.uk|sch3.mat.uk$ however this isn't working.

 

Hope this makes sense to someone.

Posted

Thanks but i think i've got what i want:

 

^([a-z0-9._-])*\@*(sch1|sch2|sch3|sch4)*\.*[mat.uk]+$

 

It might be a bit messy but that is capturing anything @ sch1 . mat . uk

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...