I\'m trying to set a regexp which will check the start of a string, and if it contains either http:// or https:// it should match it.
How c
Making this case insensitive wasn't working in asp.net so I just specified each of the letters.
Here's what I had to do to get it working in an asp.net RegularExpressionValidator:
[Hh][Tt][Tt][Pp][Ss]?://(.*)
Notes:
(?i) and using /whatever/i didn't work probably because javascript hasn't brought in all case sensitive functionality^ at beginning but it didn't matter, but the (.*) did (Expression didn't work without (.*) but did work without ^)// though might be a good idea.Here's the full RegularExpressionValidator if you need it: