Home Forums Article Discussions Article Discussions by Author Discuss Content Posted by Cade Bryant Find the Nth Occurrence of a Character in a String RE: Find the Nth Occurrence of a Character in a String
sam.russell
Valued Member
Points: 65
More actions
January 20, 2011 at 4:03 am
#1275775
Thanks! I found this function really useful. Just adding the middle line here got around the looping issue for me:
set @pos = @ret
if @pos = 0 set @counter = @Occurrence
end