Find search word within a string


#1

Hi @ all

I would like to search in a string a user-defined word and I want to
find out, how many times its appear in the string. Can anyone help me?

thanks for your effort…


#2

On 7/31/07, M. R. removed_email_address@domain.invalid wrote:

Hi @ all

I would like to search in a string a user-defined word and I want to
find out, how many times its appear in the string. Can anyone help me?

String#scan

Please read the documentation for details.

Blessings,
TwP