contains Method

Purpose:

Returns an integer whether a string contains a substring

Syntax:

.contains("substring")

Comments:

returns 1 if substring is found

return 0 if substring is not found

Example:

abc = "abcdef"

p abc.contains("ed")

1

p abc.contains("z")

0