timbo343 Posted December 4, 2019 Posted December 4, 2019 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.
timbo343 Posted December 4, 2019 Author Posted December 4, 2019 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now