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…
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…
On 7/31/07, M. R. [email protected] 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
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs