Jump to content

php regex for 'fake' protocols


WesleyA

Recommended Posts

How should I validate 'wrong' or 'fake' protocols? Not sure how to explain this.

 

 

I mean type mismatches like gttps : // but also random chars like qwerty : // should be validated. So chars before : //

 

( placed spaces in the protocols above else I wasnt possible to post it here)

 

How to do this with regex php?

Link to comment
Share on other sites

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