-
FindOneOf need explaination
Sunil Chauhan Nov 24, 2011 2:47 AM (in response to Shubham Kumar)findoneof( 'my example text string', 'et%s') returns '4' shows the position 1st occurence of any one from e and t
findoneof( 'my example text string', 'et%s', 3) returns '12' shows the position 3 rd occurence of any one from e and t
findoneof( 'my example text string', '¤%&') returns '0' show there is no match for string hence it is 0
hope this help
-
FindOneOf need explaination
Shubham Kumar Nov 24, 2011 2:54 AM (in response to Sunil Chauhan)Thanks for your reply Sunil, but I didn't understand that what do you mean by from the position 1st occurence of any one e and t. Does it search from the e and t an then how come it is returning 4 for above example. what the the search character here??
Regards,
Shubham
-
FindOneOf need explaination
Sunil Chauhan Nov 24, 2011 3:57 AM (in response to Sunil Chauhan)position means first character is at first position ,2nd character is at positition2. an so on.
position 12 3 4
findoneof( 'my example text string', 'et%s') returns '4'
shows the position 1st occurence of any one from e and t
e at postion 4
1st occurence meancy first time appearing if t comes first then also we will search position of t
4 10 12
findoneof( 'my example text string', 'et%s', 3) here 3 means 3rd occurence
e is at firsst occurence means postion 4 theen again e is at 10 th position i.e 2nd occurence and finally t is at 12 position which is 3rd occuence
i.e final answer is 12
hope this helps
-
FindOneOf need explaination
Shubham Kumar Nov 24, 2011 4:47 AM (in response to Sunil Chauhan)Thank you Sunil.
-
Re: FindOneOf need explaination
rajshekhar targar Jan 21, 2015 5:20 AM (in response to Sunil Chauhan)need to improve your english. sorry for that advice.
-
-
-
Re: FindOneOf need explaination
Bazil Momin Aug 24, 2015 2:06 AM (in response to Shubham Kumar)can anybody explain me what is the use of %s.