LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2009, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 4 Feb 2009 15:54:04 -0500
Reply-To:   Toby Dunn <tobydunn@HOTMAIL.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Toby Dunn <tobydunn@HOTMAIL.COM>
Subject:   Re: Find position of last occurrence of character in a string
Comments:   To: emailjdb@GMAIL.COM

Position = PRXMatch( '/\/[a-z|1-9| ]+$/i' , Text ) ;

On Wed, 4 Feb 2009 11:59:24 -0800, JDB <emailjdb@GMAIL.COM> wrote:

>I am looking for a function that will allow me to find the position of >the last occurrence of a specific character in a string. Basically >the opposite of the index function. For example if I wanted to find >the position of the last "/" in the following string "abc/abc/abc/ >333". I will not know how many "/" will appear before the last >occurrence. > >Thanks


Back to: Top of message | Previous page | Main SAS-L page