As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
We need to find a value within a substring, so we're using posit. Our problem is we need to find the last occurence of the value within the substring and posit only finds the first occurence ... is there a simple way to do this?
For example our string we're looking for is le in the statement "middle length". We want to find the position of length.
We had a discussion like this earlier in the year on Focal Point. Do a search for the keyword REVERSE.
There were a number of suggestions on how to find the last instance of a value. The solution I recommended was to use the REVERSE function to reverse the string and then do a search for the value. In your case since you are looking for 'le' do not forget to reverse the value you are looking for ('el') since the string you will be searching will be reversed. After you reverse the string, use POSIT to find 'el' instead of 'le'. After reversing the string, the first instance will really be the last and the last shall be the first. (Hmmm, where have i heard that before?)
I hope this helps.
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003