Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
String Comparison using escape character
#1
Solved: 10 Years, 9 Months, 1 Week ago Question 
Want to check whether following string exists in the existing string or not:-

Code:
str1 = "(%,&,_,?,#,=,-) :"
str2 = "abcd(%,&,_,?,#,=,-) :xwyz"
comparestr = instr(str2 ,str1)

Am getting failure.

I have used escape character like as below as well
Code:
str1 = "\(\%,\&,_,\?,#,=,-\) :"

Still failure.
Any help will be appreciated.
Reply


Messages In This Thread
String Comparison using escape character - by Charanpreet - 04-21-2011, 03:02 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,795 11-09-2011, 03:33 PM
Last Post: parminderdhiman84

Forum Jump:


Users browsing this thread: 1 Guest(s)