Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String Comparison using escape character
#3
Solved: 10 Years, 9 Months, 1 Week ago
Hi,

Try with the below example.
Here we go.

Code:
str1 = "abcd(%,&,_,?,#,=,-) :xwyz"
str2 = "(%,&,_,?,#,=,-) :"
If (Instr(1,str1,str2)>0) then
   Msgbox "Substring is present in given string"
Else
   Msgbox "Substring is not present in given string"
End if

Reply


Messages In This Thread
RE: String Comparison using escape character - by sreekanth chilam - 04-21-2011, 07:12 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Not able to use wild character in string amit25007 2 2,411 03-09-2016, 10:36 AM
Last Post: amit25007
  String Pattern : Alternet Character Capital abhideshpande001 4 3,335 09-03-2015, 03:43 PM
Last Post: abhideshpande001
  VB Script:number of times a character appears in a string with position Jyobtech 1 11,750 08-07-2013, 01:03 PM
Last Post: anil2u
Smile Excel Comparison Sathiya 0 2,243 12-15-2011, 12:47 PM
Last Post: Sathiya
  How to have a variable that has a string comma string .. shareq1310 5 4,794 11-09-2011, 03:33 PM
Last Post: parminderdhiman84

Forum Jump:


Users browsing this thread: 1 Guest(s)