VBScript to find the number of times a particular character is repeated in a given string. without using len, mid, right, left
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to Mercu...@googlegroups.com
To unsubscribe from this group, send email to
MercuryQTP+...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP - HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mercuryqtp+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Dear All,
To summaries all, we can find a conclusion that both Regular Expression(by Gutam) and Split(by Ranja) will work but depending on the cases.
1. If the search string(word) is unique then use Split.
Pro: If we want to find a word called ‘test’ out of the string ‘This is a test for tester’. Then count will be 2, but actual result should be 1.
Otherwise always advice to use regular expression.