Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_discuss thread: Wildcard not working


Message #1 by emikuska@l... on Wed, 7 Nov 2001 17:36:15
This is a rudimentary issue I should know how to solve, but the reality is 

different.



I tried two different variations (see below) to determine if a variable 

contains a valid URL including either http or telnet, or ftp. If it does 

do nothing, otherwise insert 'http://' into the string. Well, it is not 

working.



Does anyone have any suggestion?

Thanks.



Eric



CRefURL = request("URLText")

If not CRefURL like " *://* " Then

  CRefURL = "http://" & CRefURL

End If



CRefURL = request("URLText")

If CRefURL " *://* " Then

   CRefURL = "http://" & CRefURL

End If

  Return to Index