String/Pattern Occurrence Count?

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
PointsWell
Posts: 1457
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

String/Pattern Occurrence Count?

Post by PointsWell »

I think I have found a missing function. Or in other words I think I have a need for a function.

I am trying to count the number of times a string appears in another string (specifically '<br>') so that I can then pad out an HTML field with extra <br>s so that my boxes are showing as the right size. I had misread INDEX as counting the occurrence of a string when it is actually only pinpointing the position of the first occurrence.

Is there a way to work out how many time a substring appears in a string, for example to count how many <br> I need to add to make my html the same size
himanshu
Posts: 723
Joined: Thu Jun 19, 2008 6:24 am
Location: India
Contact:

Re: String/Pattern Occurrence Count?

Post by himanshu »

PM me your email... will share you.
From,
Himanshu Jain


AwareIM Consultant (since version 4.0)
OS: Windows 10.0, Mac
DB: MYSQL, MSSQL
BobK
Posts: 545
Joined: Thu Jan 31, 2008 2:14 pm
Location: Cincinnati, Ohio, USA

Re: String/Pattern Occurrence Count?

Post by BobK »

PM sent to PointsWell. I can be mysterious too 8)
Bob
Post Reply