Hi All,
I need to compare two strings one from data base and another generated during run time.
For Example In DB i have "The Cow is {0}"
Run time i am getting the string as "The Cow is White"
I need the result as equal. Thanks in advance.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Marjan VenemaPosted Apr 27, 2015, 5:52 AM
You could try replacing any {0} (and {1}, {2}) with some RegEx and then trying to match the string you get at run time against that.
For example:
Please note, my RegEx skills are below par. And of course you would want to replace the replacements at the top with something more intelligent.
Cheers, Marjan
Murugesh PPosted Apr 27, 2015, 2:03 AM
Abhineet SrivastavaPosted Apr 26, 2015, 1:23 PM
Marjan VenemaPosted Apr 25, 2015, 10:25 AM
If that doesn't help, could you please clarify what you are trying to achieve and what pieces of information you have to work with?
Suthish NairPosted Apr 24, 2015, 3:19 PM