Hi Can anyone tell me the regex for the below condition.
"https://abcd.ef" or "http://abcd.ef" is valid. this should not allow any spaces before "http" , "https" and after "ef". There can be any text after "ef". but the validation should not match in the below case.
"https://abcd.ef.ij k" --> since space is present between j and k-> validation should fail
" https://abcd.ef.ijk "-> since space is present in starting or trail -> validation should fail.
simply to put
[No spaces allowed][https:// or http://][and text or symbol].[any text or symbol for 2 words][optional text without no spaces in start or between or ending ]