Hi, Below are the scripts '1.question str="[email protected]"
arrSpl1 = split(str, "@") arrSpl2 = split(arrSpl1(0), ".") varTemp = arrSpl2(0)&"12345."&arrSpl2(1)&"56789@"&arrSpl1(1) MsgBox varTemp '2. question ' 'str=quicktest 'this str string should be replaced like this QuICkTes Need more clarity on this. 1. Do we need to make upper case for the charecters on that position? On Wed, Jun 21, 2017 at 4:15 AM, Barakathullah R <[email protected]> wrote: > I have been come across with these question in interview for string > function > > 1.question > [email protected] > this string should be replaced like this [email protected] > along with this those 12345 and 56789 should be added and return the sum > value > > > 2. question > > str=quicktest > this str string should be replaced like this QuICkTesT > > > can anybody help me on this > > -- > -- > 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 [email protected] > To unsubscribe from this group, send email to > [email protected] > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
